-
Notifications
You must be signed in to change notification settings - Fork 49
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
dateHelperVCalendar.js: make timezone independent #4317
dateHelperVCalendar.js: make timezone independent #4317
Conversation
4a1d97b
to
982e577
Compare
⛔ Feature branch deployment currently inactive.If the PR is still open, you can add the |
This is not a bug, this is a feature 😄 The reason is that VCalendar always runs in local timezone (there's no functionality to set the timezone of VCalendar). Because our values in DB are always stored as UTC, we need to have this conversion from UTC -> local and back. This means that testing the conversion functions is TZ-dependent (by design). I thought we improved the test experience by overriding the TZ with a known value (#3837), but seems this is not working in that case. |
We did do it for the frontend, but not for the pdf module. The scary part ist that ScheduleEntries are missing in the picasso of the pdf module depending on the time zone. |
Yeah, I see how the naming can be confusing. If you for example take the 2nd function
So a better comment might be: Regarding pdf+print: As they both don't use VCalendar anymore, I think we should refactor them to not use this hack. This should not be necessary anymore. |
Superseeded by #4329 |
As you can see in https://github.com/BacLuc/ecamp3/actions/runs/7315399347, the pdf tests only work if the TZ is set to UTC.
This is because the .utc got forgotten here.
The further plan is to run the frontend and pdf tests in multiple timezones, that we detect this sooner.
But only after #4316 when i can use matrix jobs without breaking the required status checks.