about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-01-05 22:47:52 -0600
committerEric Wong <e@yhbt.net>2020-01-06 06:14:02 +0000
commitac47f1bc4692ec11760017fff706e06a5fa8ebc7 (patch)
tree4089984249ae146e73e2f516bcc4683c12b2aa5a /t
parent55b5349f7516ec04e003470cfe13238e0b0e5435 (diff)
downloadpublic-inbox-ac47f1bc4692ec11760017fff706e06a5fa8ebc7.tar.gz
Yes, there's actually other timezones!
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}//;