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
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue