diff options
author | Eric Wong <e@80x24.org> | 2015-07-29 18:09:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-07-29 18:09:41 +0000 |
commit | ea0e8649f90d1fd0850a41c0ca16642faadf4f14 (patch) | |
tree | ec597eaf96d63fddf4baf640aa4651e1e08b5205 | |
parent | c6e9b82e6c95e1798103e901b6adbebf001929c8 (diff) | |
download | public-inbox-ea0e8649f90d1fd0850a41c0ca16642faadf4f14.tar.gz |
It's seems less ambiguous to parse a consistent in quiet lists where messages are sparse.
-rw-r--r-- | lib/PublicInbox/View.pm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index bc4c7ac7..c65e4684 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -68,14 +68,7 @@ sub index_entry { my $pfx = (' ' x $level); my $ts = $mime->header('X-PI-Date'); - 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 ' . $time; - } elsif ($now > ($ts + (24 * 60 * 60))) { - $fmt = '%m/%d ' . $time; - } + my $fmt = '%Y-%m-%d %H:%M UTC'; $ts = POSIX::strftime($fmt, gmtime($ts)); $rv .= "$pfx<b\nid=\"$id\">$subj</b>\n$pfx"; |