php timezone code warning

Found a bug? Tell us!!
Post Reply
jack419
Posts: 2
Joined: Thu Nov 19, 2009 9:13 pm
Location: Findlay, Ohio, USA
Contact:

php timezone code warning

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: php timezone code warning

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jack419
Posts: 2
Joined: Thu Nov 19, 2009 9:13 pm
Location: Findlay, Ohio, USA
Contact:

Re: php timezone code warning

Post by jack419 »

Thanks for the information
Post Reply