kvaps / docker-kolab

Kolab image with nginx, ssl, opendkim, amavis and fail2ban
MIT License
41 stars 19 forks source link

php timezone not set #24

Open kevinbader opened 7 years ago

kevinbader commented 7 years ago
env | grep TZ=
TZ=Europe/Vienna

but

PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. Y
ou 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 /usr/share/roundcubemail
/program/lib/Roundcube/rcube_user.php:491

The error goes away when setting date.timezone=Europe/Vienna in /etc/php.ini and doing a systemctl reload php-fpm afterwards.