When you have a Date block on a post, schedule the post to the future, and then preview the post, the Date block shows a past date, even though the editor showed a relative future-tense date.
Step-by-step reproduction instructions
Using Gutenberg 18.6.0, create a new post
Add the Date Block
Select the last option in CHOOSE A FORMAT
Schedule the post for a future date
Preview the post
Screenshots, screen recording, code snippet
This option:
Shows the wrong date in the preview:
Environment info
WordPress 6.5.5 running Twenty Twenty-Four
Gutenberg plugin version 18.6.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.
Description
When you have a Date block on a post, schedule the post to the future, and then preview the post, the Date block shows a past date, even though the editor showed a relative future-tense date.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
This option:
Shows the wrong date in the preview:
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