[wp-trac] [WordPress Trac] #57035: Error in current_time() function when using timestamp and no value for gmt_offset

WordPress Trac noreply at wordpress.org
Tue Mar 28 10:10:19 UTC 2023


#57035: Error in current_time() function when using timestamp and no value for
gmt_offset
-----------------------------------+-----------------------
 Reporter:  Nick_theGeek           |       Owner:  audrasjb
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  6.2
Component:  Date/Time              |     Version:  5.3
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch php8 commit  |     Focuses:
-----------------------------------+-----------------------

Comment (by SergeyBiryukov):

 Interesting, I made a note recently in comment:4:ticket:57030 that
 `gmt_offset` can be a `float`, but somehow completely forgot about that
 here. Good catch!

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


More information about the wp-trac mailing list