aboutsummaryrefslogtreecommitdiffstats
path: root/lib/format
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-08-21 08:46:25 +0200
committerReto Brunner <reto@labrat.space>2020-08-22 10:32:02 +0200
commiteb1439c2417a7f85c80249d63821e10027d7d329 (patch)
tree4b9251b5ce131bff79f12cbeb1858379d589ab9f /lib/format
parent186d61f21c72e4399608827d7bcf0c79991f8b7c (diff)
downloadaerc-eb1439c2417a7f85c80249d63821e10027d7d329.tar.gz
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.
Diffstat (limited to 'lib/format')
-rw-r--r--lib/format/format.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/format/format.go b/lib/format/format.go
index 06b4d3f5..656d8088 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,