diff --git a/backend/app/notify/email.go b/backend/app/notify/email.go
index 2f6b1b88..530c378f 100644
--- a/backend/app/notify/email.go
+++ b/backend/app/notify/email.go
@@ -78,11 +78,12 @@ type msgTmplData struct {
UserPicture string
CommentText string
CommentLink string
- CommentDate string
+ CommentDate time.Time
ParentUserName string
ParentUserPicture string
ParentCommentText string
ParentCommentLink string
+ ParentCommentDate time.Time
PostTitle string
Email string
UnsubscribeLink string
@@ -131,7 +132,7 @@ const (
{{.ParentUserName}}
-
{{.CommentDate}}
+
{{.ParentCommentDate.Format "02.01.2006 at 15:04"}}
Show
@@ -145,7 +146,7 @@ const (
{{.UserName}}
- {{.CommentDate}}
+ {{.CommentDate.Format "02.01.2006 at 15:04"}}
Reply
@@ -159,7 +160,7 @@ const (
Unsubscribe
-
[{{.CommentDate}}]
+
[{{.CommentDate.Format "02.01.2006 at 15:04"}}]
@@ -301,11 +302,12 @@ func (e *Email) buildMessageFromRequest(req Request) (string, error) {
UserPicture: req.Comment.User.Picture,
CommentText: req.Comment.Text,
CommentLink: commentUrlPrefix + req.Comment.ID,
- CommentDate: req.Comment.Timestamp.Format("02.01.2006 at 15:04"),
+ CommentDate: req.Comment.Timestamp,
ParentUserName: req.parent.User.Name,
ParentUserPicture: req.parent.User.Picture,
ParentCommentText: req.parent.Text,
ParentCommentLink: commentUrlPrefix + req.parent.ID,
+ ParentCommentDate: req.parent.Timestamp,
PostTitle: req.Comment.PostTitle,
Email: req.Email,
UnsubscribeLink: unsubscribeLink,