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 の datetime クラスがサーバーのクロックに依存していることを読みました。サーバーが夏時間を観察する場所にあり、そのタイム ゾーンが適切に構成されているとします。この 1 時間の移行中に作成された日時オブジェクトを信頼できますか?それともサーバー時刻を常に UTC に構成する必要がありますか?
はい、信頼できます。OS からのタイムゾーン情報を使用します。