aboutsummaryrefslogtreecommitdiffstats
path: root/models
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 /models
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 'models')
-rw-r--r--models/models.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go
index 7654cf02..d61b774a 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