You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: correctly render date times based on user time and preferred timezone (#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]>
0 commit comments