Timezone issue

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
tpmsguy
Posts: 1
Joined: Thu 17. Dec 2015, 20:20

Timezone issue

Post by tpmsguy » Thu 17. Dec 2015, 20:22

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

User avatar
Oliver Georgi
Site Admin
Posts: 9456
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau
Contact:

Re: Timezone issue

Post by Oliver Georgi » Fri 18. Dec 2015, 05:56

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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Kleintierpraxis am Georgengarten

Post Reply