diff options
author | Reto Brunner <reto@labrat.space> | 2020-08-21 08:46:25 +0200 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-08-22 10:32:02 +0200 |
commit | eb1439c2417a7f85c80249d63821e10027d7d329 (patch) | |
tree | 4b9251b5ce131bff79f12cbeb1858379d589ab9f | |
parent | 186d61f21c72e4399608827d7bcf0c79991f8b7c (diff) | |
download | aerc-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.
-rw-r--r-- | lib/format/format.go | 4 |
1 files changed, 2 insertions, 2 deletions
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, |