【发布时间】:2015-11-17 00:09:31
【问题描述】:
更新:
我解决了这个问题。
$date = new DateTime(null, new DateTimeZone(date_default_timezone_get()));
$date->setTimeZone(new DateTimeZone('America/Chicago'));
$time = $date->format('g:i a');
echo $time;
谢谢你
【问题讨论】:
-
“我到处找,找不到答案” apparently not 除非你能解释为什么前几个结果不起作用
-
是的。我现在明白了。
-
希望您保留原始问题并回答您的问题。
标签: javascript php html css