PHP wrong date/time

后端 未结 7 1278
南笙
南笙 2021-02-19 13:28

PHP date() & time() return incorrect time:

When date.timezone = \"Europe/Riga\" the time returned by date() was <

7条回答
  •  梦如初夏
    2021-02-19 13:58

    The timezone of the system could be wrong. This results in a shift in a time given by the PHP date() function, althought both php date.timezone (in php.ini) and system time of the server are correct.

提交回复
热议问题