diff options
author | Eric Wong <e@80x24.org> | 2015-08-20 02:30:26 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-20 02:31:32 +0000 |
commit | 7245596edd0167791e7324c2d34b7fd340a4557c (patch) | |
tree | 13bcd7154586bede2f817008d8cea1b28a4d793c /lib/PublicInbox/Feed.pm | |
parent | 15782f34be59578fbec95c01f057bcf2d133414f (diff) | |
download | public-inbox-7245596edd0167791e7324c2d34b7fd340a4557c.tar.gz |
We don't need share duplicate logic across both files.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 253eed2a..0b7ef7f8 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -5,7 +5,7 @@ use strict; use warnings; use Email::Address; use Email::MIME; -use Date::Parse qw(strptime str2time); +use Date::Parse qw(strptime); use PublicInbox::Hval; use PublicInbox::GitCatFile; use PublicInbox::View; @@ -70,9 +70,6 @@ sub generate_html_index { $state = [ $ctx->{srch}, {}, $commit, 0 ]; } my $mime = do_cat_mail($git, $_[0]) or return 0; - my $t = eval { str2time($mime->header('Date')) }; - defined($t) or $t = 0; - $mime->header_set('X-PI-TS', $t); $html .= PublicInbox::View->index_entry($mime, 0, $state); 1; }); |