PHP函数Strtotime

时间:2010-11-25 11:22:39

标签: php strtotime

我将“Y-m-d H:i”格式的日期传递给strtotime,结果是5小时减少30分钟。

1 个答案:

答案 0 :(得分:1)

确保正确设置时区。您可以使用date_default_timezone_set()将其设置为您想要的内容。