Home > Backend Development > PHP Tutorial > ZF调试有关问题

ZF调试有关问题

WBOY
Release: 2016-06-13 13:49:46
Original
869 people have browsed it

ZF调试问题
PHP Notice: date_default_timezone_set(): Timezone ID '' is invalid in /var/www/zdc_dev/application/Bootstrap.php on line 39
就这一条调了半天,什么时区呀 搞不懂了,求助知情者阿 ,谢啦

------解决方案--------------------
date_default_timezone_set($this->_config->timezone); 

应该是配置文件里面的 timezone错误了,改成




或直接改成
date_default_timezone_set("Asia/Chongqing");
------解决方案--------------------
date_default_timezone_set($this->_config->timezone);

应该有设置config的地方
Zend_Registry::set('config', $this->_config);

找到config文件,看下那里的时区设置是不是无效。

如果实在不想找

echo $this->_config;

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template