Home > php > strtotime()で時間が16時間ずれる… orz

strtotime()で時間が16時間ずれる… orz

1時間くらいハマってしまったのでメモ…

rssの日時を取得するときにどうしも16時間ずれてしまうことが判明
(16時間進んだ時間が表示されてしまう)

調べてみるとどうも同じ現象の方がいました!

どうもphp4.4.4のstrotime()関数で日時と時刻の間にTが入っていると起きる現象らしい

自分は
strtotime(*******.’-16 hour’))でとりあえず対応しました…

参照サイト↓
http://blog.biocomputing.cc/?s=ソース 

Comments:0

Comment Form
Remember personal info

Trackbacks:0

Trackback URL for this entry
http://lab.ryu-yui.com/archives/47.html/trackback
Listed below are links to weblogs that reference
strtotime()で時間が16時間ずれる… orz from lab.琉結

Home > php > strtotime()で時間が16時間ずれる… orz

Search
Feeds
Meta

Return to page top