Hey all – I am getting an error on my CMS site that reads as this:
Warning: strtotime(): 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 ‘UTC’ for ‘UTC/0.0/no DST’ instead in /var/www/html/test-site/libs/utils.php on line 97.
So I went into that folder and placed this before any of the functions:
date.timezone = "America/New_York";
However, when i try to reload my page the entire site is down. Anyone know what I am doing wrong? Thanks
You can either choose to ignore the warning (which in most cases is fine), or explicitly set the time zone using
date_default_timezone_set.Writing
date.timezone = "America/New_York";isn’t proper PHP, anyway.