~sircmpwn/aerc

eb1439c2417a7f85c80249d63821e10027d7d329 — Reto Brunner 2 months ago 186d61f
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.
1 files changed, 2 insertions(+), 2 deletions(-)

M lib/format/format.go
M lib/format/format.go => lib/format/format.go +2 -2
@@ 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,