Times should be updated with local times#4268
Open
glickgNU wants to merge 4 commits into
Open
Conversation
staysgt
requested changes
Jun 9, 2026
staysgt
left a comment
Contributor
There was a problem hiding this comment.
looks good so far! left a few comments
Comment on lines
+137
to
+151
| const AMorPM = (time: string, offset: number) => { | ||
| const startTime = Number(time.charAt(0) + (isTwoDigitHour(time) ? time.charAt(1) : '')); | ||
| let AMorPM = time.charAt(time.length - 2) + time.charAt(time.length - 1); | ||
|
|
||
| const flipAMPM = () => { | ||
| if (AMorPM === 'AM') return 'PM'; | ||
| return 'AM'; | ||
| }; | ||
|
|
||
| // if odd, the AM / PM should be flipped | ||
| const doFlip = Math.floor((startTime + offset - 1) / 12) % 2 === 1; | ||
| if (doFlip) AMorPM = flipAMPM(); | ||
|
|
||
| return AMorPM; | ||
| }; |
Contributor
wavehassman
requested changes
Jun 10, 2026
wavehassman
left a comment
Contributor
There was a problem hiding this comment.
The bug here is just changing the labels on the availability selector. I'm pretty sure the only changes necessary are reviewTimesInCurrentTimeZone and its three call sites in EditAvailability, SingleAvailabilityView, and AvailabilityScheduleView
Contributor
Author
|
The reason for the extra changes is because it is weird to have inconsistent times. If you are scheduling an event, it should show the same as on the availability, so it makes sense to change those views/modals accordingly. |
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.


Changes
Hours shown on the calendar now will be updated depending on the user's time zone.
If the hours roll over to a new day, the day is also updated accordingly.
Daylight savings is also factored in too.
Test Cases
To Do
Any remaining things that need to get done
Checklist
It can be helpful to check the
ChecksandFiles changedtabs.Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.
yarn.lockchanges (unless dependencies have changed)Closes #4259