来自Apache phpinfo
date/time support enabled
"Olson" Timezone Database Version 0.system
Timezone Database internal
Default timezone Europe/London
但从命令行
是正确的php -i | grep -i timezone
给出:
"Olson" Timezone Database Version => 2011.14
Timezone Database => external
Default timezone => Europe/London
date.timezone => Europe/London => Europe/London
Alternative Timezone Database => enabled
Timezone Database Version => 2011.14
php.ini中的设置
extension=timezonedb.so
Centos 5.7 x64
Apache / 2.2.3(CentOS)
PHP 5.3.3
任何线索?
答案 0 :(得分:0)
为我解决了什么: - 来自
Server Fault: updating-systems-olson-timezone-database-version
yum update tzdata
Red Herring 1
BTW phpinfo仍显示相同的信息,但是来自CLI和apache的相同脚本的时区数据现在相同
Red Herring 2
认为Apache正在访问不同的PHP