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.
次のように、MST サーバー時間を UTC に変換します。
$msttime="2012-09-15 17:00:01"; $getdatetimeUTC=gmdate('Y-m-d H:i:s',strtotime($msttime));
そして私はこれを得る:
2012-09-15 23:00:01
これは間違っています!
なぜこうなった?2012-09-15 24:00:01 を取得する必要がありました。
どんな助けでも大歓迎
私のサーバーはMSTですが、これはphpのバグで、date_default_timezone_get()を使用してMDTを提供しました。それを機能させるには、phpの設定を構成する必要がありました!.