[horde] last login display: always UTC ?

Arjen de Korte arjen+horde at de-korte.org
Mon Jul 8 07:22:20 UTC 2013


Citeren Andreas Schulze <sca at andreasschulze.de>:

> don't know it it's intensional to display last login time in UTC but  
> my users complain about that.

In that case, they (or you) should configure the timezone in their  
preferences. In that case, the timezone of the last login time will  
match the users preferences. If all your users are in the same  
timezone, you may enter this in 'horde/config/prefs.local.php'.

> I looked in ~horde/lib/Block/Time.php and found
>         // Set the timezone variable, if available.
>         $GLOBALS['registry']->setTimeZone();
>
> I added this to ~horde/lib/LoginTasks/Task/LastLogin.php (after line 44)
> and now the login time is also displayed in the timezone set by the user.
-------------- 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/d516fdad/attachment.bin>


More information about the horde mailing list