Skip to content

Commit

Permalink
Merge pull request #180 from sandeep14k/main
Browse files Browse the repository at this point in the history
Updated deadline in mail body
  • Loading branch information
yashlm authored Nov 7, 2024
2 parents d70f4e6 + a0203f1 commit dba6cf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rc/admin.notice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit dba6cf9

Please sign in to comment.