PHP 5.3 – Date warning

Published by

Posted on March 17, 2010

Wow, PHP is changing the way we code our websites

More Warnings
Warning: date() [function.date]: 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 ‘EDT/-4.0/DST’ instead in

Solution :
date.timezone will need to be set within the php.ini file as
date.timezone = “timezone”
Supported timezones
America/New_York

Also Set the function date_default_timezone_set
Example date_default_timezone_set(‘America/Los_Angeles’);

possible errors:
Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.