From 8f1c6c46ff1de2d94377c0cf20fdc8bbdba59fef Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Fri, 26 Jun 2020 09:25:53 +0200 Subject: Fix dates in reply/forward commands. The data was passed around as a string for some reason, which led to time precision loss and wrong dates being displayed. Simply pass the time as is to fix that. --- commands/msg/forward.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/msg/forward.go') diff --git a/commands/msg/forward.go b/commands/msg/forward.go index 28abbed1..5f4da5cf 100644 --- a/commands/msg/forward.go +++ b/commands/msg/forward.go @@ -77,7 +77,7 @@ func (forward) Execute(aerc *widgets.Aerc, args []string) error { addTab := func() (*widgets.Composer, error) { if template != "" { original.From = models.FormatAddresses(msg.Envelope.From) - original.Date = msg.Envelope.Date.Format("Mon Jan 2, 2006 at 3:04 PM") + original.Date = msg.Envelope.Date } composer, err := widgets.NewComposer(aerc, acct, aerc.Config(), acct.AccountConfig(), -- cgit