Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled Posts using Post Date set to Relative Time show incorrect date in preview #62976

Closed
mrfoxtalbot opened this issue Jun 28, 2024 · 1 comment · Fixed by #62979
Closed
Assignees
Labels
[Block] Post Date Affects the Post Date Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@mrfoxtalbot
Copy link

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

  1. Using Gutenberg 18.6.0, create a new post
  2. Add the Date Block
  3. Select the last option in CHOOSE A FORMAT
  4. Schedule the post for a future date
  5. Preview the post

Screenshots, screen recording, code snippet

This option:
Annotation on 2024-06-28 at 15-09-19

Shows the wrong date in the preview:
Annotation on 2024-06-28 at 13-28-45

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.

Yes

@amitraj2203
Copy link
Contributor

I will submit a PR soon for its fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Date Affects the Post Date Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
2 participants