-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly render date times based on user time and preferred tim…
…ezone (#1515) * Change ms value for setHours in agenda date property * Set hours to 24 and assume the default values of the others * WIP: add timezone offset * Use a local ISO 8601 string for dates * Remove unnecessary console text * Remove the timezone offsets to use UTC by default * Change to const for un-reassigned variables * Change wording of dateToLocalISO return value * Display the time from the server as it is in the string * Update packages/mgt-components/src/components/mgt-agenda/mgt-agenda.ts Co-authored-by: Sébastien Levert <[email protected]> * Fix prettier issues generated from upstream code changes * fix: set start date hours to 12AM * fix: remove local ISO time conversion * fix: retain hours as interpreted from date attribute * refactor: remove unused code blocks * fix: stop sending the preferred-timezone header Instead, use the preferred-timezone value on the client with the toLocale* date api. This localizes the date and time string on the client side. The dates are all by default in UTC * fix: add a Z in UTC time strings This fixes the offset issue * fix: add a Z in UTC time strings This fixes the offset issue * refactor: use timeStyle and dateStyle to customize format output Co-authored-by: Sébastien Levert <[email protected]> Co-authored-by: Nickii Miaro <[email protected]>
- Loading branch information
1 parent
37d1add
commit 728e578
Showing
2 changed files
with
17 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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