Page 1 of 1

Timezone issue

Posted: Thu 17. Dec 2015, 20:22
by tpmsguy
I seem to be getting a timezone error any idea on fix?

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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home1/thetiref/public_html/tpmsrelearn/include/inc_lib/default.inc.php on line 448

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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home1/thetiref/public_html/tpmsrelearn/include/inc_front/front.func.inc.php on line 1578

Re: Timezone issue

Posted: Fri 18. Dec 2015, 05:56
by Oliver Georgi
This happens if you or your hosting provider has updated PHP without updating php.ini the right way.

If you have no option to customise your php.ini current releases of phpwcms have config settings for that.

To get your timezone have a look at http://php.net/manual/en/timezones.php. Then edit /include/config/conf.inc.php

Code: Select all

$phpwcms['php_timezone'] = ''; // overwrite/set PHP default time zone
$phpwcms['db_timezone'] = ''; // overwrite/set MySQL time zone