destoon采集论坛's Archiver
destoon采集论坛
›
BUG反馈
› 转换Unix时间戳错误
icflying
发表于 2010-8-10 05:54:12
转换Unix时间戳错误
strtotime(*) 表示将2010-01-01日期格式转换为Unix时间戳
用api入库时,原时间为2008-06-06 05:59,用strtotime(*) 转换,strtotime(2008-06-06 05:59), 结果在后台显示的是却是2010-08-10 04:59,也就是无法用strtotime(*) 来转换原值,显示的是文章入库的时间,而不是原文章发布的时间。
页:
[1]
查看完整版本:
转换Unix时间戳错误