You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user's timezone is significantly different than the timezone that WordPress is configured with, the DateTimePicker component displays incorrectly. The first day of the month that is being displayed is the last day of the previous month. This causes some days within the month to disappear.
Similar issue to #29306 however this targets the month's display.
Step-by-step reproduction instructions
Change your local machine's timezone to somewhere in England.
Set WordPress's timezone setting to Los Angeles.
Edit or Add a new post.
Open the DateTimePicker component by trying to schedule a post.
Screenshots, screen recording, code snippet
Environment info
WordPress Version 6.1.1
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered:
Issue was not resolved by #47879 or there has been a regression because we're able to replicate reliably with the steps outlined by @cadwell above.
The following screenshot was taken at UTC Feb 2, 2024 @ 2:04 AM. WP and server are both set to New York TZ and the local machine to London TZ. Jan 31 is displayed erroneously, Feb 29 is missing and the current month is mislabeled as January.
This also has functional implications because the date display offset yields the peculiar behavior that clicking on a date in the calendar updates the form input field date to the next date. So clicking on Feb 7 updates the form input field to Feb 8, as seen here:
Description
When the user's timezone is significantly different than the timezone that WordPress is configured with, the DateTimePicker component displays incorrectly. The first day of the month that is being displayed is the last day of the previous month. This causes some days within the month to disappear.
Similar issue to #29306 however this targets the month's display.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: