[wp-trac] [WordPress Trac] #39954: REST API: Improve date updates if both `date` and `date_gmt` are set

WordPress Trac noreply at wordpress.org
Fri Feb 24 18:20:58 UTC 2017


#39954: REST API: Improve date updates if both `date` and `date_gmt` are set
-------------------------+------------------------------
 Reporter:  jnylen0      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  REST API     |     Version:  4.7
 Severity:  minor        |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------
Changes (by jnylen0):

 * severity:  normal => minor


Comment:

 Ideally the `date` / `post_date` field wouldn't even exist, and we would
 store all dates as UTC, and also store timezone offsets where needed.
 That ship sailed long ago.

 In most of WordPress, including wp-admin, `post_date` is the default
 field, and `post_date_gmt` is basically an afterthought.  From this
 perspective, the existing behavior of preferring the `date` value makes
 more sense than preferring the `date_gmt` value.

 This isn't likely to be a big deal either way, just something we could
 definitely handle better.

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


More information about the wp-trac mailing list