Event Countdown block timezone is unclear and inconsistent #38285
Description
Impacted plugin
Jetpack
Quick summary
I tried to add an instance of the Event Countdown block to a post. It was very unclear what timezone it was interpreting the input in, and as far as I can tell it was wrong.
Steps to reproduce
- Have your timezone set to America/New York. Not sure if this is your browser, or your blog, or what.
- Add an Event Countdown block.
- Try to set an event for a specific UTC time a few months in the future, across the next DST change.
- Publish, then calculate the time of the target event based on what's shown in the block.
A clear and concise description of what you expected to happen.
Ideally, a clear indication in the picker and in the button exactly what timezone is being used. Even better if I can select the timezone.
What actually happened
No timezone is indicated in the picker or in the button. After entering a time and dismissing the picker, the button shows a time 1 hour off from what was entered.
It appears that the picker interprets the entered time based on the current UTC offset, not the offset that will be in effect on the selected date. The button displays the time using the offset that will be in effect on the selected date, and the block itself displays the countdown to what the button displays.
Impact
All
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
Simple, Atomic, Self-hosted
Logs or notes
No response
Metadata
Assignees
Labels
Type
Projects
Status
Triaged
Activity
anomiex commentedon Jul 10, 2024
@Automattic/lego This looks like something you worked on recently?
Aurorum commentedon Jul 10, 2024
If no choice is offered, I still remain extremely keen to see this block use the site timezone by default (see #14289 for context - that’s also the default behaviour of the Milestone Widget).
arthur791004 commentedon Jul 11, 2024
We just migrated the existing block from ETK to Jetpack. We'll take a look this issue later.
5 remaining items