[wp-trac] [WordPress Trac] #39954: REST API: Improve date updates if both `date` and `date_gmt` are set
WordPress Trac
noreply at wordpress.org
Thu Mar 9 02:36:06 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:
-------------------------+------------------------------
Comment (by jnylen0):
Replying to [comment:6 mnelson4]:
> Or maybe the dates should just always be in the site's timezone,
regardless of the author's local time?
For ~~better or~~ worse, this is the way WP handles dates. Really we
should just store UTC with the appropriate offset(s), but it's too late
for that.
Still, I'm not really opposed to allowing clients to set both `date` and
`date_gmt`, under the assumption that if they want to do that, they know
what they are doing. As you mentioned, this does provide a way to store
the timezone offset of a post.
@rmccue what do you think?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39954#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list