llocally / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

strtotime() error message #241

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Got this error on a users server today:

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 'UTC' for 'UTC/0.0/no DST' instead in 
/usr/local/www/apache22/data/wp-content/themes/apz/functions/thumb.php on line 
998

Not sure if it is something fixable on the server or not, but maybe there is a 
workaround?

Original issue reported on code.google.com by magnusje...@gmail.com on 19 Aug 2011 at 6:24

GoogleCodeExporter commented 9 years ago
User was hosting on his own server, and disabled PHP error reporting to remove 
the error.

Original comment by magnusje...@gmail.com on 19 Aug 2011 at 6:44

GoogleCodeExporter commented 9 years ago
for example, add this (for paris here) :

date_default_timezone_set('Europe/Paris');

Original comment by neopheus on 19 Aug 2011 at 7:43

GoogleCodeExporter commented 9 years ago
added a default timezone - errors should be removed now :)

Original comment by BinaryMoon on 21 Aug 2011 at 8:30