Post Date block: Different display when site & user timezone don't match #39984
Labels
[Block] Post Date
Affects the Post Date Block
[Type] Bug
An existing feature does not function as intended
Description
I'm in EDT (UTC-4), and I created a post at 12pm. My site is in PDT (UTC-7), so it saved the post as being created at 9:00am PDT. I have a set of post date blocks using different date formats.
In the database, it has
On the frontend of the site, the Post Date block shows
1648803600
2022-04-01T09:00:00-07:00
In the site editor, all three formats show different results
1648818000
2022-04-01T06:00:00-07:00
The timestamp should be
1648828800
.Step-by-step reproduction instructions
M j, Y — g:i a T
to see the full date with timezone.Screenshots, screen recording, code snippet
Block code used to test, sets up a group with 3 date blocks using different formats.
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: