2016-10-02 146 views
0

我希望任何人都能帮助我。我只想在这里显示当前日期。但我的代码不工作,有什么想法?尽管提前谢谢你。 :)如何显示当前日期

image of the problem. click this to view. it must "october 2, not 3."

这里是我的代码。

<div class="breadcrumbs"><?php print date('F j, Y l'); ?></div> 
+0

的问题不在于你的代码。问题可能是服务器的设置时间(区域)。 –

+0

我认为我在我的笔记本电脑上的时间是正确的。它是10月2日,但显示是10月3日。:( –

+0

'timezone_offset_get()'返回什么? –

回答