about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/nntp.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/nntp.t b/t/nntp.t
index 938eef38..24fe487c 100644
--- a/t/nntp.t
+++ b/t/nntp.t
@@ -68,7 +68,7 @@ use_ok 'PublicInbox::Inbox';
                 my ($date, $time, $gmt) = @_;
                 my $m = join(' ', @_);
                 my $ts = PublicInbox::NNTP::parse_time(@_);
-                my @t = gmtime($ts);
+                my @t = $gmt ? gmtime($ts) : localtime($ts);
                 my ($d, $t) = split(' ', strftime('%Y%m%d %H%M%S', @t));
                 if (length($date) != 8) { # Net::NNTP uses YYMMDD :<
                         $d =~ s/^[0-9]{2}//;