PHP 5.3 – Date warning

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

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

March 17, 2010 Post Under PHP - Read More

Comments are closed.