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

WordPress Trac noreply at wordpress.org
Fri Aug 23 00:03:45 UTC 2024


#56358: PHP8 TypeError on current_time( 'timestamp' ) if timezone is set to GMT / 0
-----------------------------+--------------------------------
 Reporter:  toastercookie    |       Owner:  hellofromTonya
     Type:  defect (bug)     |      Status:  assigned
 Priority:  normal           |   Milestone:  6.7
Component:  Date/Time        |     Version:  6.0
 Severity:  minor            |  Resolution:
 Keywords:  php80 has-patch  |     Focuses:  php-compatibility
-----------------------------+--------------------------------

Comment (by peterwilsoncc):

 I've created a [https://github.com/WordPress/wordpress-develop/pull/7233
 PR for this] and the related tickets to cast the gmt offset throughout the
 code base. I'm happy to hear suggestions for alternative approaches too.

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


More information about the wp-trac mailing list