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

前端 未结 2 841
傲寒
傲寒 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:40

    Why not do the following:?

    date_default_timezone_set('Europe/Lisbon');
    

提交回复
热议问题