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. --- models/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/models.go') diff --git a/models/models.go b/models/models.go index 7654cf0..d61b774 100644 --- a/models/models.go +++ b/models/models.go @@ -170,7 +170,7 @@ func FormatAddresses(addrs []*Address) string { // OriginalMail is helper struct used for reply/forward type OriginalMail struct { - Date string + Date time.Time From string Text string MIMEType string -- cgit 1.4.1-2-gfad0