Wrong date displayed in confCreated page for some timezones
estellecomment opened this issue · comments
Reported by user b***.r***@martinique.pref.gouv.fr
If your time zone is west of GMT+1, you will get the wrong date displayed in the confirmation page (confCreated.ejs) when the conference is created.
Reproduce :
- set your computer time to martinique time
- book a conference for day X
- the confirmation page displays the wrong day : X+1 (while the email displays the right day X)
That is because the date is displayed based on conference.expiresAt
, which for these timezones can be the day after (because it is at midnight in the local time zone, which is the next day in UTC).
Proposed fix : use conferenceDay
, which is a date and not a datetime, rather than expiresAt
, for display on confCreated.ejs