You are not logged in.
For the record, I hit a problem after upgrading my PHP installation. The following message was displayed in TXP admin and on the website:
Warning: date_default_timezone_get() [function.date-default-timezone-get]: 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 'Australia/Melbourne' for 'EST/11.0/DST' instead in ......../textpattern/lib/txplib_misc.php on line 2525
In my case I was upgrading from PHP 5.3.1 to 5.3.5. Problem seen in TXP 4.2.0 & 4.3.0
The fix is to set the timezone explicitly in the php.ini file:
date.timezone = Australia/Melbourne
The line was commented out & I’m not sure if PHP has suddenly become picky or my php.ini file had been overwritten during the upgrade.
I have the same warning, but i can’t edit my php.ini.
There is another way to solve the problem?
Last edited by MarcoK (2011-05-03 13:42:57)
I have txp 4.4.
I have solved the problem, by editing config.php in textpattern/ dir adding
date_default_timezone_set('Europe/Rome'); //Rome in my case
Just for the records either, i had the same bug with txp 4.4.1 after the hosting company upgraded php to 5.3.5. MarcoK solution did it… (I can´t access php.ini on this server).
Thx a lot…
Marcok, where is that config.php file you mention where to add the configuration for the time zone settings?
config.php is in /textpattern/.