Error during Export - Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.
When I try to export a table to EXCEL, I get this error message. I couldn't figure out why.
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/Denver' for 'MST/-7.0/no DST' instead in /home/biotechn/public_html/isyDB/phpGrid_Lite/export.php(1) : e
Solution:
You need put the timezone in php.ini.
[Date]
; Defines the default timezone used by the date
functions
date.timezone =
America/New_York
- OR -
See:
http://php.net/manual/en/function.date-default-timezone-set.php