lib/PublicInbox/View.pm | 7 ++++--- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index b943c4ce5e7b8c707aa7ab2074ff9c44ce89ce6c..e76d904e47367f8ccc4277b21dcd59ad676e7646 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -68,12 +68,13 @@ $subj = PublicInbox::Hval->new_oneline($subj)->as_html; my $pfx = (' ' x $level); my $ts = $mime->header('X-PI-Date'); - my $fmt = '%H:%M UTC'; + my $time = '%H:%M UTC'; + my $fmt = $time; if ($now > ($ts + (365 * 24 * 60 * 60))) { # doesn't have to be exactly 1 year - $fmt = '%Y/%m/%d'; + $fmt = '%Y/%m/%d ' . $time; } elsif ($now > ($ts + (24 * 60 * 60))) { - $fmt = '%m/%d'; + $fmt = '%m/%d ' . $time; } $ts = POSIX::strftime($fmt, gmtime($ts));