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
1 changed files with 2 additions and 2 deletions

View File

@ -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,