Gutenberg gets the time of the local computer and then it decides based on the difference between that and server time if the post will be Published or Scheduled.
If the server time (which is the default time which is given to the post) is ahead of your OS time, then the editor will offer the Schedule button instead of your Publish button, even if you set your local (OS) time incorrectly.
1.Make sure that you set your system clock incorrectly (for instance 1 hour back) in the OS,
2.Click on add new post with an account which has the publish_posts capability,
3.The editor will display the 'Schedule' button instead of the 'Publish' button.
The Editor should probably offer the Publish button based on server time.
The Editor can incorrectly offer the 'Schedule' button in some rare circumstances described above.
Hi @LZL0, thank you for reporting this issue.
We change the way time manipulated in https://github.com/WordPress/gutenberg/pull/5916, and I think this change fixed the issue. I'm now not able to reproduce the problem following the exact steps you provided. If the problem is persisting in your tests feel free to reopen the issue and we will look further.
Thanks for getting back to me and investigating the problem. Okay, will do.
Is 2.8 dropping today?
Hi @LZL0, yes 2.8 should be released soon.
Thanks. Just downloaded it. Looking forward working with it. :)