[horde] last login display: always UTC ?
Arjen de Korte
arjen+horde at de-korte.org
Mon Jul 8 17:40:01 UTC 2013
Citeren Andreas Schulze <sca at andreasschulze.de>:
> Zitat von Arjen de Korte <arjen+horde at de-korte.org>:
>
>> Citeren Andreas Schulze <sca at andreasschulze.de>:
>>> don't know it it's intensional to display last login time in UTC
> so it is not :-)
>
>> If all your users are in the same timezone,
>> you may enter this in 'horde/config/prefs.local.php'.
>
> That's exactly what I did:
>
> # cat ~horde/config/prefs.local.php
> <?php
> $_prefs['timezone']['value'] = 'Europe/Berlin';
> $_prefs['twentyFour']['value'] = true;
> $_prefs['date_format']['value'] = '%A, %d. %B %Y';
> $_prefs['time_format']['value'] = '%R';
> $_prefs['first_week_day']['value'] = 1;
>
> With this setting the portal block show localtime and last_login is UTC.
My bad, you're right. The above settings are not enough. It is the
'date.timezone' parameter from php.ini that makes this work (in my
case). If I set it to 'UTC', the last login is shown in UTC. But since
this value is set to 'Europe/Amsterdam' in my case, it will show the
time correctly. If the majority of your users is in the same timezone,
you might consider setting this to 'Europe/Berlin' instead.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 308 bytes
Desc: PGP digitale ondertekening
URL: <http://lists.horde.org/archives/horde/attachments/20130708/3525f972/attachment.bin>
More information about the horde
mailing list