]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/NNTP.pm
searchview: increase limit for displaying search results
[public-inbox.git] / lib / PublicInbox / NNTP.pm
index b7143ff3ef07db59505e34b3d2176447c398c842..9408ffb9d8540cf4f19fe70ee5301596d95fd807 100644 (file)
@@ -250,8 +250,8 @@ sub parse_time ($$;$) {
                ($YYYY, $MM, $DD) = unpack('A4A2A2', $date);
        } else { # legacy clients send YYMMDD
                ($YYYY, $MM, $DD) = unpack('A2A2A2', $date);
-               if ($YYYY > strftime('%y', @now)) {
-                       my $cur_year = $now[5] + 1900;
+               my $cur_year = $now[5] + 1900;
+               if ($YYYY > $cur_year) {
                        $YYYY += int($cur_year / 1000) * 1000 - 100;
                }
        }