From 7e090792c568fac3c3e7ec76f0b03aa1e1ce6c91 Mon Sep 17 00:00:00 2001 From: Mark Schwerzler Date: Sun, 15 Sep 2024 10:28:29 -0400 Subject: [PATCH] Correct date formatting in notification messages by removing the incorrect 'nd' suffix applied to all days. --- internal/notifier/service/planner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/notifier/service/planner.go b/internal/notifier/service/planner.go index 2f7f207..fe70e6e 100644 --- a/internal/notifier/service/planner.go +++ b/internal/notifier/service/planner.go @@ -115,7 +115,7 @@ func generatePreDueNotifications(chore *chModel.Chore, users []*cModel.UserCircl TypeID: 3, UserID: user.ID, TargetID: fmt.Sprint(user.ChatID), - Text: fmt.Sprintf("📢 Heads up! *%s* is due soon (on %s) and assigned to %s.", chore.Name, chore.NextDueDate.Format("January 2nd"), assignee.DisplayName), + Text: fmt.Sprintf("📢 Heads up! *%s* is due soon (on %s) and assigned to %s.", chore.Name, chore.NextDueDate, assignee.DisplayName), } notifications = append(notifications, notification) @@ -178,7 +178,7 @@ func generateCircleGroupNotifications(chore *chModel.Chore, mt *chModel.Notifica CreatedAt: time.Now().UTC().Add(-time.Hour * 3), TypeID: 3, TargetID: fmt.Sprint(*mt.CircleGroupID), - Text: fmt.Sprintf("📢 Heads up! *%s* is due soon (on %s).", chore.Name, chore.NextDueDate.Format("January 2nd")), + Text: fmt.Sprintf("📢 Heads up! *%s* is due soon (on %s).", chore.Name, chore.NextDueDate), }) } if mt.Nagging {