[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 15:33:22 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                 |   Keywords:
  Focuses:  rest-api, performance  |
-----------------------------------+-----------------------------
 Hello,

 I found this bug when using (get_post_time), i have two examples 1. the
 normal way of pulling post through a theme and 2. pulling post through the
 rest api.

 the issue is as followed:
 1. if on post archive or home, the first item will have either (and this
 part changes) a +1 or -1 to the day the post was submitted, but only the
 first post
 2. if i pull the post through the REST API, it does it to all post.

 I have not tried every format, but the one i tried was this
 get_post_time(‘F d, Y’, true);

 Please advice if i need to provide any additional details!

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


More information about the wp-trac mailing list