[wp-trac] [WordPress Trac] #58986: TypeError: Unsupported operand types: string * int *

WordPress Trac noreply at wordpress.org
Thu Aug 24 18:40:22 UTC 2023


#58986: TypeError: Unsupported operand types: string * int *
--------------------------+------------------------------------------
 Reporter:  nurielmeni    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.4
Component:  Date/Time     |     Version:  6.2.2
 Severity:  critical      |  Resolution:  invalid
 Keywords:  needs-patch   |     Focuses:  rest-api, php-compatibility
--------------------------+------------------------------------------
Changes (by rleeson):

 * keywords:  has-patch => needs-patch
 * status:  new => closed
 * resolution:   => invalid


Comment:

 GMT offsets can be fractional, as noted in
 [https://core.trac.wordpress.org/ticket/57035#comment:18 this ticket 57035
 comment] so `intval` or casting to an int cause regression for those
 fractional time zones.

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


More information about the wp-trac mailing list