Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #56358, comment 1


Ignore:
Timestamp:
08/10/2022 07:36:11 AM (2 years ago)
Author:
Rarst
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56358, comment 1

    v2 v3  
    11Do you mean UTC? GMT is currently not an option in WordPress time zone settings and I can't reproduce it on PHP 8.1.
    22
    3 I do not see how this error could happen with current version of the `current_time()` code.
     3I do not see how this error could happen with current version of the `current_time()` code. Which WordPress version are you on?
    44
    55I do see that option could return `"0"` there (for UTC+0 time zone). However, from quick check, multiplying that by an integer is a valid operation in PHP 8, it would type cast it to a number. https://3v4l.org/sGXiQ