ci_phpers 发表于 2011-4-5 13:11:35

ci calendar问题

当我加载calendar的时候 会报这样的错误:

Message: date() : It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead

Filename: libraries/Calendar.php

请问高手这个怎么解决?

Hex 发表于 2011-4-5 18:31:50

这是你的 PHP 的问题,也就是 php 5.3 才有这个,你要先设置时区。
google date_default_timezone_set()

古树 发表于 2011-7-17 01:47:16

可以加上
date_default_timezone_set('Asia/Shanghai');
页: [1]
查看完整版本: ci calendar问题