我试图将今天的日期与我将从其他地方获得的 $Time 变量结合起来,将今天和时间结合起来,然后将它们转换为纪元。
这就是我所拥有的:
$Time='16:26:00';
$now = new DateTime(null, new DateTimeZone('EST'));
$today=$now->format('Y-m-d');
$today= $today . ' '. $Time;
$today=new DateTime($today, new DateTimeZone('EST'));
$today=date_format($today, 'U');
$today=$today*1000;
当我回应今天时,我得到的时间戳比我早 4 小时,有什么想法我可能会在这里遗漏吗?