Welcome Guest, Not a member yet? Register   Sign In
Codeigniter email config file causes date() timezone error
#1

Codeigniter 3.0.3 I had just created new email.php config file in application\config folder,

I tried to add just 1 parameter in config array, and then if i open my web application then i get below message,

Below is config parameters,

$config = array(

'mailtype' => 'html'

);
A PHP Error was encountered

Severity: Warning

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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.

Filename: libraries/Email.php

Line Number: 1036
If i remove contents from array, then there is no message, I am not sure what is causing this error by adding config array,

Any thoughts?

Thanks,
Reply
#2

Got my answer, set date.timezone = "US/Central" in Php.ini fix issue.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB