简体   繁体   中英

PHP parse date with Timezone+Offset using strtotime()

PHP's strtotime("2015-05-11 00:03:24 UTC+1") gives me the unix timestamp 1431302604 . But the timestamp should be 1431299004 .

Am I wrong? Or how can I correctly parse this date with PHP 5.4.

尝试strtotime("2015-05-11 00:03:24+01:00")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM