I have a script that I haven't run in a couple of weeks. Today, I'm getting this error:
Warning: date_create() [function.date-create]: 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/Chicago' for 'CDT/-5.0/DST' instead in /Library/WebServer/Documents/DispatchReports/WeeklyReport.php on line 94
The only difference between the script working and now is daylight savings time. I have this line in my php.ini file:
date.timezone = America/Chicago
and I'm still getting the error.
Please don't tell me I'm going to have to throw
date_default_timezone_set('America/Chicago');
into every php script I have.