WIP - datepicker.js — 3 fixes:#1055
Open
onewheelskyward wants to merge 1 commit into
Open
Conversation
- Added getPacificToday() using Intl.DateTimeFormat with timeZone: 'America/Los_Angeles', which returns the correct Pacific date regardless of the browser's timezone - isToday() now compares against the Pacific date instead of the local date - toUtcString() no longer calls .utc() — converting local-midnight dayjs objects to UTC was shifting dates backward for users east of UTC (e.g., a user clicking "Jan 5" in the calendar would accidentally store Jan 4) - initDatePicker() now starts from the Pacific "today" date addevent.js — 1 fix: - 'hh:mm:ss' → 'HH:mm:ss' in the preview time parser; the lowercase hh is 12-hour format and would misparse afternoon times like "14:30:00", causing the preview to display wrong end times for PM events main.js — 1 fix: - Same 'hh:mm:ss' → 'HH:mm:ss' fix for event time display in the calendar list view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
addevent.js — 1 fix:
main.js — 1 fix: