$now[5]);
return $tm;
}
+ elsif ($str =~ /^(\S+)\s+(\S+)\s+(\d{1,2})\s+(\d+):(\d+)/) {
+ # Format like Tue Dec 7 12:58
+ local @now = localtime(time());
+ local $tm = timelocal(0, $5, $4, $3, &month_to_number($2),
+ $now[5]);
+ return $tm;
+ }
elsif ($str =~ /^(\S+)\s+(\d+)\s+(\d+):(\d+):(\d+)\s+(\d+)\s+(\S+)/) {
# Format like Dec 7 12:58:52 2004 GMT
local $tm = timegm($5, $4, $3, $2, &month_to_number($1),
require './user-lib.pl';
&ReadParse();
+&foreign_require("mailboxes");
# Work out who we can list for
$u = $in{'username'};
# Build the table data
@table = ( );
foreach $l (&list_last_logins($u, $config{'last_count'})) {
+ $tm = &mailboxes::parse_mail_date($l->[3]);
push(@table, [
$u ? ( ) : ( "<tt>".&html_escape($l->[0])."</tt>" ),
&html_escape($l->[2]) || $text{'logins_local'},
&html_escape($l->[1]),
- &html_escape($l->[3]),
+ &make_date($tm),
$l->[4] ? ( &html_escape($l->[4]),
&html_escape($l->[5]) )
- : { 'type' => 'string', 'columns' => 2,
- 'value' => "<i>$text{'logins_still'}</i>" },
+ : ( "<i>$text{'logins_still'}</i>", "" ),
]);
}