【发布时间】:2012-03-17 02:00:12
【问题描述】:
A PHP Error was encountered
Severity: Warning
Message: date() [function.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 'Europe/Berlin' for 'CET/1.0/no DST' instead
Filename: libraries/Email.php
Line Number: 704
Line Number 709
尝试使用 codeigniter 电子邮件库发送电子邮件时收到此错误。我想我应该指定 date_default_timezone_set 但我不知道我必须在哪里指定它,因为我在发送邮件时不使用日期。
【问题讨论】:
-
我在一分钟前回答了你,为什么要为同样的问题打开一个新问题?编辑你的 php.ini 文件,它会解决你所有的错误。
标签: php email codeigniter date