我将日期格式为“ Ymd H:i”的日期传递给strtotime,因此返回的结果少了5小时30分钟。
Make sure you set the timezone correctly. You can use date_default_timezone_set()
to set it to what you want.
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.