From a0203f1cc9a1211c69e0cef4790e34027f2aa96e Mon Sep 17 00:00:00 2001 From: sandeep14k <143644790+sandeep14k@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:14:59 +0530 Subject: [PATCH] Updated deadline in mail body --- rc/admin.notice.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/admin.notice.go b/rc/admin.notice.go index 5b25a65..6477e2a 100644 --- a/rc/admin.notice.go +++ b/rc/admin.notice.go @@ -135,8 +135,8 @@ func postReminderHandler(mail_channel chan mail.Mail) gin.HandlerFunc { mailBody := notice.Description if notice.Deadline > 0 { - deadlineTime := time.Unix(int64(notice.Deadline), 0) - deadlineStr := deadlineTime.Format("02 Jan 2006 15:04") + deadlineTime := time.Unix(int64(notice.Deadline)/1000, 0) + deadlineStr := deadlineTime.Format("02 Jan 2006 15:04") mailBody += "\n\nDeadline: " + deadlineStr }