Roundcube Community Forum

 

php.ini timezone

Started by cbrace, August 14, 2012, 02:10:23 AM

Previous topic - Next topic

cbrace

Hi all,

Since updating to 0.8, I am getting the timezone error messages again:

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 'Europe/Berlin' for 'CEST/2.0/DST' instead in /usr/local/www/roundcube/program/include/rcube_config.php on line 404

Years ago I added "date.timezone = Europe/Amsterdam" to php.ini, but that no longer appears to be sufficient. How do I fix this?

TIA

SKaero

It should be:
date.timezone = "Europe/Amsterdam"

Also make sure you restart the web sever.

cbrace

#2
Still doesn't fix it. even after restarting lighttpd. On the one hand, I can live with the error message, on the other dates are now broken, as I mentioned in another post. Could this be related?

SKaero

Since your using lighttpd are you running php-fpm?

cbrace

I am not sure what php-fpm is (I don't see any such package in the FreeBSD port tree). I have configured php as fastcgi under lighttpd, the standard way I thought.

SKaero

So you're using FastCGI? There is most likely a separate service that need to be restarted for the change to take effect.

cbrace

#6
As far as I can tell, all PHP-CGI processes are restarted when lighttd is restarted, but perhaps there is something else I don't know. In any case, I rebooted the server and dates are now being displayed.