Gutenberg: Schedule post to future date and then change to past date doesn't publish inmediately

Created on 23 Oct 2018  路  3Comments  路  Source: WordPress/gutenberg

peek 2018-10-24 13-25

To Reproduce
Steps to reproduce the behavior:

  1. With Date picker change to a future date and schedule post.
  2. With Date picker select yesterdays date or earlier and publish post.
  3. Notice the message says "post title" is now scheduled. It will go live on Oct 22, 2018 7:47 am.

Expected behavior
Setting a date of today or earlier the post will be published right away, and not become scheduled.

Desktop (please complete the following information):

  • Live test site
  • Chrome
  • Version 69.0.3497.100 (Official Build) (64-bit)

Additional context

  • Gutenberg 4.1 - RC2.

In relation to this PR: https://github.com/WordPress/gutenberg/pull/7621#issuecomment-432014098

[Feature] Document Settings [Feature] Saving [Type] Bug [Type] Regression

All 3 comments

@paaljoachim thanks for the bug report. I've modified a bit the issue description to better reflect how to test it and added a GIF.

Note that this only happens when the pre-publish checks are enabled.

https://github.com/WordPress/gutenberg/pull/11013 fixes this issue and is ready for review.

Was this page helpful?
0 / 5 - 0 ratings