Timezone setting 错误

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 ‘-4.0/DST’ instead in D:\Dkits\Apache2.2\htdocs\mysonicfirewebs\sonicfire\includes\foot.php on line 52

可以通过使用下面的函数:
date_default_timezone_set(‘America/New_York’);

设定时区,可以将这个函数放在common.php文件中,然后导入到其他php文件中,这样就可以为每一个需要使用date函数的地方设定了默认时区。