- 🇦🇺Australia acbramley
This happened again today with NZDT and AEDT transitioning back to standard time https://www.drupal.org/pift-ci-job/2633173 →
- Status changed to Needs review
over 1 year ago 1:29am 3 April 2023 - 🇦🇺Australia acbramley
I think this is caused by a bug in
getUTCEquivalentOfUserNowAsTimestamp
At the moment it gets "now" based on the user's current timezone and then formats that into a date object as UTC. This seems to be a bug since this would give the incorrect day as UTC if the test runs before 9/10 am (depending on DST). Because "now at 9am" in AEST is actually yesterday 11pm UTC.
Swapping to simply set the timezone instead of constructing a new date seems like it should fix it, however I was unable to reproduce the failure locally.
- Status changed to Needs work
over 1 year ago 1:56am 3 April 2023 - 🇦🇺Australia acbramley
Hmm don't think that's going to work, manually testing by replacing "now" with "today 6am" fails as well.