diff options
author | Eric Wong <e@yhbt.net> | 2020-01-05 22:47:52 -0600 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-01-06 06:14:02 +0000 |
commit | ac47f1bc4692ec11760017fff706e06a5fa8ebc7 (patch) | |
tree | 4089984249ae146e73e2f516bcc4683c12b2aa5a /t | |
parent | 55b5349f7516ec04e003470cfe13238e0b0e5435 (diff) | |
download | public-inbox-ac47f1bc4692ec11760017fff706e06a5fa8ebc7.tar.gz |
Yes, there's actually other timezones!
Diffstat (limited to 't')
-rw-r--r-- | t/nntp.t | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}//; |