php.ini中的date.timezone ='UCT'无法正常工作 [英] date.timezone = 'UCT' in php.ini not working
问题描述
我使用的服务器有PHP版本4.4.7,这条指令产生了一个
错误:
<?php date_default_timezone_set(''UCT' ); echo日期('h:ia'');?>
php帮助建议我改变php.ini:
date.timezone =''UCT''
然而,当我这样做时,显示的时间似乎是服务器的时间,而不是UCT的
。 br />
我做错了什么?
问候,
Jan Nordgreen
The server I use has PHP Version 4.4.7 and this instruction creates an
error:
<?php date_default_timezone_set(''UCT''); echo date(''h:ia'');?>
php Help advises me to change php.ini instead:
date.timezone = ''UCT''
However, when I do the time shown seems to be that of the server, not
of UCT.
What am I doing wrong?
Regards,
Jan Nordgreen
推荐答案
damezumari写道:
damezumari wrote:
然而,当我这样做的时候似乎是服务器的那个,而不是UCT的
。
However, when I do the time shown seems to be that of the server, not
of UCT.
什么是UCT?你的意思是UTC吗?
-
Toby A Inkster BSc(荣誉)ARCS
[极客HTML / SQL / Perl / PHP / Python / Apache / Linux]
[操作系统:Linux 2.6.12-12mdksmp,上升19天,15:08。]
demiblog 0.2.0发布
http ://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/
谢谢!
Thanks!
什么是UTC?
What is UTC ?
这篇关于php.ini中的date.timezone ='UCT'无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!