strtotimeはTimeZoneが違うと結果も違うよ

May 15, 2013
AD:

今朝、古いサーバからグループウェアを移設していたんですが、ファイルのダウンロードの機能がうまく行かなかったので、その際の対処をメモしておきます。

原因

ファイルを保存する際にstrtotimeを使ってファイル名を生成しているようなんですが、それが古いサーバと新しいサーバでは結果が違うことを発見、それで問題は、TimeZoneだと判明しました。
なので、下記のようにTimeZoneを指定してあげると問題解決できました。

Related posts

AD:

No Comments, Comment or Ping

Reply to “strtotimeはTimeZoneが違うと結果も違うよ”

You must be logged in to post a comment.

Search Keyword

Meta

face Ayumi Mizoshiri
WEB developer

FacebookPage

Popular Posts

Sorry. No data so far.

ARCHIVES