“It is not safe to rely on the system's timezone settings”

前端 未结 2 842
傲寒
傲寒 2021-02-15 13:14

I have a script that I completed a week ago, without any problem or bug. Today, I tested it again and I received these messages:

Strict Standards: date()

相关标签:
2条回答
  • 2021-02-15 13:30

    In php.ini, ; comments out a line, so ;date.timezone = "Europe/Lisbon" does nothing. Uncomment that line by removing that preceding ; and restart Apache.

    0 讨论(0)
  • 2021-02-15 13:40

    Why not do the following:?

    date_default_timezone_set('Europe/Lisbon');
    
    0 讨论(0)
提交回复
热议问题