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:
parent
186d61f21c
commit
eb1439c241
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue