From eb1439c2417a7f85c80249d63821e10027d7d329 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Fri, 21 Aug 2020 08:46:25 +0200 Subject: Localize timestamps in the message list Not sure we need a flag for it, most people expect times to be in their local time anyhow. --- lib/format/format.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/format/format.go b/lib/format/format.go index 06b4d3f..656d808 100644 --- a/lib/format/format.go +++ b/lib/format/format.go @@ -143,7 +143,7 @@ func ParseMessageFormat( } retval = append(retval, 's') args = append(args, - dummyIfZeroDate(date, timestampformat)) + dummyIfZeroDate(date.Local(), timestampformat)) case 'D': date := msg.Envelope.Date if date.IsZero() { @@ -151,7 +151,7 @@ func ParseMessageFormat( } retval = append(retval, 's') args = append(args, - dummyIfZeroDate(date, timestampformat)) + dummyIfZeroDate(date.Local(), timestampformat)) case 'f': if msg.Envelope == nil { return "", nil, -- cgit 1.4.1-2-gfad0