I get this error: Warning: strtotime() [function.strtotime]: It is not safe to [...]

coffeega

New Member
Messages
1
Reaction score
0
Points
0
Hi folks!

I have a small problem here, I get this following error message :

Warning: strtotime() [function.strtotime]: 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/New_York' for 'EDT/-4.0/DST' instead in

and this is the code written on that particular row;

$date = strftime("%b %d, %Y",strtotime($row['time_sent']));


does anybody know what I can do to fix this?


Thanks in advance

Daniel Lisik
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Re: I get this error: Warning: strtotime() [function.strtotime]: It is not safe to [.

Ask the people who wrote the code.
 

learning_brain

New Member
Messages
206
Reaction score
1
Points
0
Re: I get this error: Warning: strtotime() [function.strtotime]: It is not safe to [.

what raw data do you get from $row['time_sent']?
 

fruitytest89

New Member
Messages
19
Reaction score
1
Points
0
Re: I get this error: Warning: strtotime() [function.strtotime]: It is not safe to [.

Grim_squeaker - is that supposed to be helpful??

coffega - add something like this:

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

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Re: I get this error: Warning: strtotime() [function.strtotime]: It is not safe to [.

Grim_squeaker - is that supposed to be helpful??

A. This forum is for programmers, not users of third party software. There is another forum for that.

B. Contacting the creator of the script will do two things.
i. Get what should be a correct, tested solution. Not an educated guess.
ii. Will allow the developer to fix the bug in future releases.
 

fruitytest89

New Member
Messages
19
Reaction score
1
Points
0
Re: I get this error: Warning: strtotime() [function.strtotime]: It is not safe to [.

This is not a mesage generated from a third-party s/w provider.
 
Top