Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバーのサマータイムに問題があります。
php.ini に、次の行を追加しました。
date.timezone = "Europe/Lisbon"
そして、サーバーのタイムスタンプは素晴らしかったです。しかし数週間前、リスボンは夏時間に入り、現在は GMT +1000 です。
サーバー上で実行されているスクリプトは 1 時間遅れています...
どうすればこれを修正できますか?
ありがとう、
RL
UTCタイムゾーンとして使用します。基本的にGMTですが、サマータイムはありません。
UTC
php.ini ファイルを変更する代わりに。
使用する date_default_timezone_set('timezone here');
date_default_timezone_set('timezone here');
だから試してみて..
date_default_timezone_set('Europe/Lisbon');