使用Codeigniter发送邮件的日期错误 [英] Date error sending mail using codeigniter
本文介绍了使用Codeigniter发送邮件的日期错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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,但是我不知道该在哪里指定,因为我在发送邮件时不使用日期。
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.
推荐答案
在您的php.ini文件中设置 date.timezone
,或者如果不可能,请使用:
Either set date.timezone
in your php.ini file, or if that isn't possible, use:
ini_set('date.timezone', 'Europe/London');
在CodeIgniter的index.php文件中。
in CodeIgniter's index.php file.
这篇关于使用Codeigniter发送邮件的日期错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文