Post time incorrect by UTC offset in WP 6.1.1 on Atomic #71529
Description
Quick summary
On WoA sites on WP 6.1.1 (latest) post times are offset by the equivalent of the difference between the sites timezone and UTC. When the site is set to UTC the time is correct.
Occasionally a new post will also display Schedule instead of Publish, I think because it’s done some conversion already and things the post is in the future even though it reports Immediately next to the time.
- It only happens with the block editor; time is correct when posted using classic editor
- I can’t reproduce on Simple or self hosted (with or without Jetpack)
- It doesn't happen when WP version is set to Previous (6.0.3)
- I confirmed with the Atomic team that this is not likely due to Atomic server settings already
Steps to reproduce
- On a WoA site on latest version of WP, set the site time to some zone other than UTC (if you set to your TZ the testing is easier)
- create a post and publish it immediately
- click the publish time link and compare to the time in the popup
What you expected to happen
When posts are published immediately they should display the current time. Not the current time plus the UTC offset
What actually happened
On WoA sites on WP 6.1.1 (latest) post times are offset by the equivalent of the difference between the sites timezone and UTC. When the site is set to UTC the time is correct.
Context
p9F6qB-b40-p2#comment-51010
Platform (Simple, Atomic, or both?)
Atomic
Theme-specific issue?
no
Browser, operating system and other notes
No response
Reproducibility
Consistent
Severity
All
Available workarounds?
None
Workaround details
If you set the site time to UTC it will reflect correctly (according to UTC time)