PHP strtotime returning false for UTC time

前端 未结 2 1487
闹比i
闹比i 2021-01-28 15:03

My colleague and I are obtaining different results from some unit tests that use strtotime.

The discrepancy originates in this line:

$value = strtotime(         


        
2条回答
  •  -上瘾入骨i
    2021-01-28 15:46

    It's likely related to 32-bit vs 64-bit. Timestamps in the year 2050 are larger than 32 bits.

提交回复
热议问题