Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个很简单的问题。我将由 javascript 创建的millis 日期发送到 php 站点,并使用 phps getdate 获取有关关联数组中日期的信息。我的时区是 GMT+2,但我不明白为什么使用毫秒的日期转换应该有这样的效果。有人可以向我解释一下吗?
谢谢!
听起来 PHP 不知道时区应该是什么,或者系统时区设置不正确。最简单的解决方法是在 PHP 代码中设置您自己想要的时区。