[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 19:45:36 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
-------------------------------+------------------------------------

Comment (by petertoi):

 @keyinora thanks!

 Can you show me how the submitted date is different from the template/REST
 date? Are the Published Dates in the wp-admin WP_Post_Table accurate? I do
 see that your template is displaying time in UTC, not in local time. Could
 that account for the difference?

 Perhaps you can upload a screenshot of the same post from wp-admin showing
 the date as well as rendered in the template and in the REST API to show
 how they are different?

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


More information about the wp-trac mailing list