Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and improve monthly sync information #405

Merged
merged 1 commit into from
Dec 28, 2024
Merged

Conversation

smortex
Copy link
Member

@smortex smortex commented Dec 27, 2024

Time Zones are a PITA, the meeting incidentally happen at 15:30 UTC at the moment, but it is in reality scheduled at 16:30 CET (UTC+1) during the winter and 16:30 CEST (UTC+2) when daylight saving take place during the summer. Fix the indication so that it matches reality.

Because converting from one time-zone to an other is something nobody like to do, add some JavaScript code to do it for us and display when the next monthly sync will take place. For this we rely on moment.js to do the math (as everybody knows, JS sucks and it lacks some time-zone functions) and format the time of the event conveniently for the user in their time zone (with formatting such as "Tomorrow at 5:30 AM" when the date is near).

Screenshot of the rendering done in JavaScript

Last, but not least, provide a .ics file with the same information one more time so that people can easily choose what they prefer. Compared to the event in the Puppetlabs calendar, this one supposedly has the correct time-zone and should avoid the mess that happened during the last daylight saving change where US and EU where not changing the same week.

Time Zones are a PITA, the meeting incidently happen at 15:30 UTC at the
moment, but it is in reality scheduled at 16:30 CET (UTC+1) during the winter
and 16:30 CEST (UTC+2) when daylight sayving take place during the
summer.  Fix the indication so that it matches reality.

Because converting from one time-zone to an other is something nobody
like to do, add some JavaScript code to do it for us and display when
the next monthly sync will take place.  For this we rely on moment.js to
do the math (as everybody knows, JS sucks and it lacks some time-zone
functions) and format the time of the event conveniently for the user in
their time zone (with formatting such as "Tomorrow at 5:30 AM" when the
date is near).

Last, but not least, provide a .ics file with the same information one
more time so that people can easily choose what they prefer.  Compared
to the event in the Puppetlabs calendar, this one supposely has the
correct time-zone and should avoid the mess that happened during the
last daylight saving change where US and EU where not changing the same
week.
@smortex smortex merged commit 036f79e into master Dec 28, 2024
2 checks passed
@smortex smortex deleted the monthly-sync-info branch December 28, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants