I am sending emails from my website using codeigniters email helper (SMTP)
Emails are being delivered successfully to my inbox BUT I am receiving the following error:
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 'America/Los_Angeles' for 'PST/-8.0/no DST' instead
Filename: libraries/Email.php
Line Number: 704
I have recently switched my hosting to mediatemple and haven’t had messages like this before. Do I need to specify the time format somewhere or timezone??
Set
date.timezonein yourphp.inifile and the warning should go away.I believe MediaTemple allows you to edit your php.ini settings by including a php.ini in your home directory.