I'm not sure if this is an s9y bug or something I'm doing wrong (more likely =D), but I get the following warning messages in my apache error log anytime someone accesses any of my s9y blog sites.
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 'UTC' for 'UTC/0.0/no DST' instead in <htdocs_directory>/my_s9y_blog/include/compat.inc.php on line 322
Does anyone know how I can fix these warnings?
Thanks!
Jonathon
PHP Warning: date_default_timezone_get() [SOLVED]
PHP Warning: date_default_timezone_get() [SOLVED]
Last edited by jwdonal on Wed Dec 08, 2010 7:55 am, edited 2 times in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: PHP Warning: date_default_timezone_get()
Hi!
You should check your php.ini value for "date.timezone" and set it to your server's timezone!
HTH,
Garvin
You should check your php.ini value for "date.timezone" and set it to your server's timezone!
HTH,
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/
# 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/
Re: PHP Warning: date_default_timezone_get()
That worked!! No more hundreds of errors! THANKS! =D