Welcome Guest, Not a member yet? Register   Sign In
Severity Warning Message : Date()
#1

[eluser]jacobson[/eluser]
Hello, i have the following problem. I built simple email sending system which successfully sends the emails. But when The message "email has been sended" appears there also appears other "warnings" such as :
Code:
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 'Europe/Paris' for '2.0/DST' instead

Filename: libraries/Email.php

Line Number: 691

I've read that this is a problem with my php (im running on the localhost) file. But I don't know what I have to change into what to make this warning dissapear. I had this warning several times for example when I forgot to extend CI_Controller and I extended only Controller. But now I don't know where exactly is the problem.
#2

[eluser]InsiteFX[/eluser]
Did you Read this Thread?

InsiteFX
#3

[eluser]Nur Cholikul Anwar[/eluser]
if you found this bug:
Warning: 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

add this line on your php script before function date:
date_default_timezone_set("Asia/Jakarta");

Or follow this step:

1. Open php.ini (example: in opensuse; /etc/php5/apache2/php.ini)
2. search date.timezone
3. Change this line to be: date.timezone = "Asia/Jakarta"
4. Restart Apache


This is table of time zone:http://www.php.net/manual/en/timezones.asia.php


Oke thank --NCA
#4

[eluser]Unknown[/eluser]
matur nuwun gan..




Theme © iAndrew 2016 - Forum software by © MyBB