Set default timezone for PHP date formatting
After updating my PHP i get errors in ISPConfig log. PHP complains that date.timezone is not set. In my opinion it's applications task to set the timezone right. As a workaround i have set date.timezone in php.ini serverwide. But this can't be the long term solution.
PHP Warning: 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 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/local/ispconfig/server/mods-available/monitor_core_module.inc.php on line 868 PHP Warning: 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 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/local/ispconfig/server/mods-available/monitor_core_module.inc.php on line 1177 PHP Warning: 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 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/local/ispconfig/server/mods-available/monitor_core_module.inc.php on line 1178