[wp-trac] [WordPress Trac] #38883: Shim post_date_gmt for drafts / empty dates in the REST API

WordPress Trac noreply at wordpress.org
Mon Nov 21 12:51:36 UTC 2016


#38883: Shim post_date_gmt for drafts / empty dates in the REST API
--------------------------------------+------------------------------
 Reporter:  joehoyle                  |       Owner:  rmccue
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-unit-tests has-patch  |     Focuses:
--------------------------------------+------------------------------

Comment (by danielbachhuber):

 Replying to [comment:7 jnylen0]:
 > > The expectation is that the date remains a falsy value if it's meant
 to be set to the current time when the post is published.
 >
 > This is a silly expectation.  The API should both provide and accept a
 UTC/GMT date.

 Could you explain why you think this is a "silly expectation" in greater
 detail? If a client doesn't want to publish a post at a specified time,
 but rather the current time of the request handling, how should it make
 this request?

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


More information about the wp-trac mailing list