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

WordPress Trac noreply at wordpress.org
Wed Jul 10 17:37:22 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          |     Focuses:  php-compatibility
---------------------------+--------------------------------
Changes (by hellofromTonya):

 * keywords:  php8 => php80
 * owner:  (none) => hellofromTonya
 * status:  reopened => assigned
 * milestone:   => 6.7


Comment:

 Related: #57035, #58986, #60629.

 Each of these tickets is dealing with the same issue, which I summarized
 in [57035#comment:39]:

 >I'm thinking this area needs a deeper contextual dive as well as
 consideration and testing to raise confidence of no side effects or
 regressions being introduced. It'll also need more test coverage (happy
 and unhappy paths).
 >
 >The challenges:
 >* robust solution to handle all timezones include partial hour timezones.
 >>The `gmt_offset` can be a float/double for partial-hour timezones such
 as +5:30 UTC for India and Sri Lanka.
 >* review of what values `gmt_offset` should and could have.
 >* and cross-version compatibility for the PHP versions WP supports.
 >
 >I'm also curious of how this is solved in other projects.
 >
 Pulling it into 6.7 and self-assigning with intent to help shepherd the
 effort for these tickets.

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


More information about the wp-trac mailing list