From adb070ef0cf3185dbccb5a606c149ebb2e2eaadd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 29 May 2016 02:57:57 +0000 Subject: searchmsg: all timestamps stored in Xapian are UTC We cannot have strftime using the local timezone for %z. This fixes output when a server is not running UTC. --- lib/PublicInbox/SearchMsg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ($) { -- cgit v1.2.3-24-ge0c7