Date error sending mail using codeigniter

[亡魂溺海] 提交于 2019-12-25 06:52:54

问题


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

Trying to send an email using codeigniter Email library I get this error.I think I should specify the date_default_timezone_set but I don't know where I have to specify it since I don't use date when I send mail.


回答1:


Either set date.timezone in your php.ini file, or if that isn't possible, use:

ini_set('date.timezone', 'Europe/London');

in CodeIgniter's index.php file.



来源:https://stackoverflow.com/questions/9467687/date-error-sending-mail-using-codeigniter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!