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.
This commit is contained in:
Reto Brunner 2020-08-21 08:46:25 +02:00
parent 186d61f21c
commit eb1439c241

View file

@ -143,7 +143,7 @@ func ParseMessageFormat(
} }
retval = append(retval, 's') retval = append(retval, 's')
args = append(args, args = append(args,
dummyIfZeroDate(date, timestampformat)) dummyIfZeroDate(date.Local(), timestampformat))
case 'D': case 'D':
date := msg.Envelope.Date date := msg.Envelope.Date
if date.IsZero() { if date.IsZero() {
@ -151,7 +151,7 @@ func ParseMessageFormat(
} }
retval = append(retval, 's') retval = append(retval, 's')
args = append(args, args = append(args,
dummyIfZeroDate(date, timestampformat)) dummyIfZeroDate(date.Local(), timestampformat))
case 'f': case 'f':
if msg.Envelope == nil { if msg.Envelope == nil {
return "", nil, return "", nil,