[wp-trac] [WordPress Trac] #48384: get_post_time returns wrong value after timezone switch

WordPress Trac noreply at wordpress.org
Wed Oct 23 22:41:31 UTC 2019


#48384: get_post_time returns wrong value after timezone switch
-------------------------------------------------+-------------------------
 Reporter:  david.binda                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.3.1
Component:  Date/Time                            |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests commit      |     Focuses:
  dev-feedback                                   |
-------------------------------------------------+-------------------------
Changes (by azaozz):

 * milestone:  5.3 => 5.3.1


Comment:

 Seems this would need a context, to be aware of the post type, draft vs.
 published, or better to handle both cases with and without GMT date in the
 db. May also affect some CPTs depending on their settings. Perhaps a
 wrapper function with some logic along these lines?

 Thinking this would be better handled for 5.3.1 with enough time to
 perhaps explore different approaches.

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


More information about the wp-trac mailing list