]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/View.pm
view: fix wrong date for non-Xapian/SQLite v1 users
[public-inbox.git] / lib / PublicInbox / View.pm
index 416cb4a8001a9040afabff4ec606a2ceacb6c67b..5ddb8425029c332380447691c2fde6caf24ec477 100644 (file)
@@ -218,11 +218,12 @@ sub index_entry {
        $rv .= $subj . "\n";
        $rv .= _th_index_lite($mid_raw, \$irt, $id, $ctx);
        my @tocc;
+       my $ds = $smsg->ds; # for v1 non-Xapian/SQLite users
        my $mime = delete $smsg->{mime}; # critical to memory use
        my $hdr = $mime->header_obj;
        my $from = _hdr_names_html($hdr, 'From');
        obfuscate_addrs($obfs_ibx, $from) if $obfs_ibx;
-       $rv .= "From: $from @ ".fmt_ts($smsg->ds)." UTC";
+       $rv .= "From: $from @ ".fmt_ts($ds)." UTC";
        my $upfx = $ctx->{-upfx};
        my $mhref = $upfx . mid_escape($mid_raw) . '/';
        $rv .= qq{ (<a\nhref="$mhref">permalink</a> / };