Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Post time incorrect by UTC offset in WP 6.1.1 on Atomic #71529

Open Nic-Sevic opened 1 year ago

Nic-Sevic commented 1 year ago

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.

Steps to reproduce

  1. 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)
  2. create a post and publish it immediately
  3. 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.

image

image

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)

zdenys commented 1 year ago

5821455-zd-woothemes Site's timezone is set to New York (aka EST). In order for the time next to Publish to be December 31, 2022 10:00 pm EST in the date picker they have to select 3AM January 1st 2023.

0IGURg.png

github-actions[bot] commented 1 year ago

Support References

This comment is automatically generated. Please do not edit it.