[wp-trac] [WordPress Trac] #56358: PHP8 TypeError on current_time( 'timestamp' ) if timezone is set to GMT / 0

WordPress Trac noreply at wordpress.org
Thu Mar 7 18:26:55 UTC 2024


#56358: PHP8 TypeError on current_time( 'timestamp' ) if timezone is set to GMT / 0
---------------------------+-----------------------
 Reporter:  toastercookie  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  reopened
 Priority:  normal         |   Milestone:
Component:  Date/Time      |     Version:  6.0
 Severity:  minor          |  Resolution:
 Keywords:  php8           |     Focuses:
---------------------------+-----------------------

Comment (by verygoode):

 With https://core.trac.wordpress.org/ticket/56358#comment:6, it seems
 current_time might need to be a bit more robust to avoid fatals when the
 `gmt_offset` option is empty.

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


More information about the wp-trac mailing list