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.
我将“Ymd H:i”格式的日期传递给 strtotime,结果返回的时间减少了 5 小时 30 分钟。
确保正确设置时区。您可以使用date_default_timezone_set()将其设置为您想要的。
date_default_timezone_set()