For a weird reason this is still producing a time that is a half hour earlier than the system's time:
date_default_timezone_set("America/New_York");
Is there a way to add minutes to the date_default_timezone_set function?
您可以使用strtotime()将时间添加到当前时间戳记
$time = date("Y-m-d H:i:s", strtotime('+1 hours'));
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.