[wp-trac] [WordPress Trac] #60184: Publication date 01/01/1970 is refused

WordPress Trac noreply at wordpress.org
Thu Aug 29 19:30:12 UTC 2024


#60184: Publication date 01/01/1970 is refused
--------------------------+------------------------------
 Reporter:  emmanuel78    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.4.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------
Changes (by sabernhardt):

 * focuses:   => rest-api
 * component:  General => Editor


Comment:

 Hi and welcome to WordPress Core Trac!

 I received a REST API error message when I tried to save a post in the
 (block) editor with a publish date of 01/01/1970 at midnight local time.
 If it compares against the Unix epoch time with a less than or greater
 than operator, that may need to account for equality too (`<=`).

 For workarounds:
 - I was able to set the publish date to 12:01am in the editor.
 - Quick Edit allows setting the time to 00:00.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60184#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list