Page 1 of 1

Warning: strftime() [function.strftime]: It is not safe

PostPosted: Fri Jul 09, 2010 12:35 pm
by chichi
Hello, Now my applikation is running, it shows me warning messages:

Warning: strftime() [function.strftime]: 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 'CEST/2.0/DST' instead in /home/www/ad/lib/Smarty/Smarty_Compiler.class.php on line 400

Need help on this as well. This Warnings appeared one time each site. After a refresh it wont show again. :roll:

Re: Warning: strftime() [function.strftime]: It is not safe

PostPosted: Thu Jul 22, 2010 9:07 pm
by strast
Did you set your date.timezone setting in the php.ini file on your web server?

Code: Select all
[Date]
date.timezone = Europe/Berlin


Be sure to restart the web server after the modification.


Steve S.

Re: Warning: strftime() [function.strftime]: It is not safe

PostPosted: Fri Jul 23, 2010 4:52 am
by chichi
I am hosting on a public-server, there is no access to php.ini
Thanks chichi