diff options
author | Eric Wong <e@80x24.org> | 2014-11-02 23:26:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-11-02 23:26:33 +0000 |
commit | e09d9faf6056e1f5748abeafe682c6e1c30558ba (patch) | |
tree | f2d657a84e25f9ebdfe578fe497cee763ca01d9c | |
parent | d90942eae05aaa37c7421495a41108b632634e73 (diff) | |
download | public-inbox-e09d9faf6056e1f5748abeafe682c6e1c30558ba.tar.gz |
This is occasionally useful and we're not as starved for screen space now now that sender+timestamps are on a separate line.
-rw-r--r-- | lib/PublicInbox/View.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index b943c4ce..e76d904e 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -68,12 +68,13 @@ sub index_entry { 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)); |