about summary refs log tree commit diff stats
path: root/commands/msg/forward.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-06-26 09:25:53 +0200
committerReto Brunner <reto@labrat.space>2020-06-26 09:25:53 +0200
commit8f1c6c46ff1de2d94377c0cf20fdc8bbdba59fef (patch)
tree5ebbdb98a2f28419c6cdaf193c5dc76ebaea5c45 /commands/msg/forward.go
parent91db250272502f9d1f1f388fa59f5782fd103815 (diff)
downloadaerc-8f1c6c46ff1de2d94377c0cf20fdc8bbdba59fef.tar.gz
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.
Diffstat (limited to 'commands/msg/forward.go')
-rw-r--r--commands/msg/forward.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/forward.go b/commands/msg/forward.go
index 28abbed..5f4da5c 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(),