[dev] Re: [cvs] commit: imp status.php imp/lib IMP.php

Per-Stian Vatne psv@orsta.org
Wed, 29 May 2002 15:12:17 +0200


Siterer Tero Matinlassi <tero.matinlassi@edu.vantaa.fi>:

| > >   Log:
| > >   Horrible kludge to make Last Login display work across
| > requests.
| > 
| > Not so horrible. At least, it works.
| 
| It works.. but has something quirky. I think it's showing the time in 
| 12H clock format as it says "03:34:23" instead of "15:34:23". Can it be 
| changed somehow?

> > >   Log:
> > >   Horrible kludge to make Last Login display work across
> > requests.
> > 
> > Not so horrible. At least, it works.
> 
> It works.. but has something quirky. I think it's showing the time in 
> 12H clock format as it says "03:34:23" instead of "15:34:23". Can it be 
> changed somehow?

imp/lib/IMP.php: line 310:
$notification->push(sprintf(_("Last login: %s"), strftime(_("%A, %B %e, %Y,
%I:%M:%S %p %Z"), $last_login)), 'horde.message');

Change %I to %H? Or at least, would be nice to choose between the two.

http://no.php.net/manual/en/function.strftime.php:
%H - hour as a decimal number using a 24-hour clock (range 00 to 23)
%I - hour as a decimal number using a 12-hour clock (range 01 to 12) 

Regards,
Per-Stian

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/