[wp-trac] [WordPress Trac] #42534: get_post_time is adding or dropping a day on the front end.
WordPress Trac
noreply at wordpress.org
Mon Nov 13 18:16:55 UTC 2017
#42534: get_post_time is adding or dropping a day on the front end.
-------------------------------+------------------------------------
Reporter: keyinora | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 4.9
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: rest-api, performance
-------------------------------+------------------------------------
Changes (by petertoi):
* keywords: => reporter-feedback
Comment:
Hi @keyinora - thanks for submitting a ticket!
I was just trying to replicate the bug you described in your ticket but
having some difficulty. Would you mind providing us with some more
details?
Can you perhaps provide some code fragments, or screenshots that
illustrate the problem?
Also, could you provide some information about your time zone settings?
When you refer to "the day the post was submitted" are you referring to
your local day/time? Or GMT day/time. In the call to {{{get_post_time()}}}
I see that you're setting the {{{$gmt}}} flag to {{{true}}} which may be
causing the difference? Let's get more details and find out for sure.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42534#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list