about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-05-29 02:57:57 +0000
committerEric Wong <e@80x24.org>2016-05-29 02:58:08 +0000
commitadb070ef0cf3185dbccb5a606c149ebb2e2eaadd (patch)
treebb8e26507b8a53a91d330f9dbfd530a070ab4b99
parent2980bf96b647f2e2461ded6b5c05da13ab89650f (diff)
downloadpublic-inbox-adb070ef0cf3185dbccb5a606c149ebb2e2eaadd.tar.gz
We cannot have strftime using the local timezone for %z.
This fixes output when a server is not running UTC.
-rw-r--r--lib/PublicInbox/SearchMsg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm
index 0fb2a07e..caebe372 100644
--- a/lib/PublicInbox/SearchMsg.pm
+++ b/lib/PublicInbox/SearchMsg.pm
@@ -80,7 +80,7 @@ sub date ($) {
         return $date if defined $date;
         my $ts = $self->{ts};
         return unless defined $ts;
-        $self->{date} = strftime('%a, %d %b %Y %T %z', gmtime($ts));
+        $self->{date} = strftime('%a, %d %b %Y %T +0000', gmtime($ts));
 }
 
 sub from ($) {