Page 1 of 1

php timezone code warning

Posted: Thu Nov 19, 2009 9:40 pm
by jack419
This is the error I am receiving:

PHP Warning: date_default_timezone_get(): 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 'EST/-5.0/no DST' instead in /srv/www/htdocs/weblog/include/compat.inc.php on line 322, referer: xxxxx.xxx/weblog/serendipity_admin.php

Could someone please shed a bit of light on this warning for me.

Re: php timezone code warning

Posted: Thu Nov 19, 2009 10:23 pm
by garvinhicking
Hi!

This should be fixed in s9y 1.5 I believe, which has a lot of PHP 5.3 compatibility code.

(However, it's also a warning that can be ignored, because s9y doesn't use the timezone features of PHP)

Regards,
Garvin

Re: php timezone code warning

Posted: Thu Nov 19, 2009 11:56 pm
by jack419
Thanks for the information