Default timezone on Horde

vgv

Registered
Mar 16, 2007
3
0
151
With the update to Horde Groupware 5.1, the default timezone has been lost and so Horde uses UTC. According to the developers the timezone is set like that:

In descending precedence:
- user prefs
- date.timezone php.ini setting
- TZ environment variable
- UTC
I tried to export the TZ enviroment variable using a .bashrc file on /var/cpanel/userhomes/cpanelhorde, but it didn't worked as cpanelhorde uses /usr/local/cpanel/bin/noshell as shell.

The timezone on /usr/local/cpanel/3rdparty/php/54/etc/horde/php.ini is not set. I changed it to my timezone and worked, but it will be overwritten by cpanel update.

Is there any form of making it permanent and ensuring it will not be overwritten by an update?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

You could setup a hook that runs after cPanel updates to ensure the date.timezone setting is applied to the php.ini file. This would be similar to the method described here:

Postupcp for Roundcube

Thank you.