Last Updated on Saturday, 25 August 2012 12:45
Written by Jack Yin
Friday, 24 August 2012 12:00
After upgrading webservers to new stable 5.3.0, tomatocart started to give following errors to every page:
[09-Aug-2012 10:09:53] PHP 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 ‘Asia/Jerusalem’ for ‘IDT/3.0/DST’ instead in /home/gadgetsc/domains/gadgets-car.com/public_html/templates/glass_gray/index.php on line 281
Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn’t valid, and/or a E_WARNING message if using the system settings or the TZ environment variable.