From 3f488b51402d35619735423e12ad6f9ac68a0f62 Mon Sep 17 00:00:00 2001 From: Charlie Egan Date: Thu, 30 Jun 2022 07:19:43 +0100 Subject: [PATCH] Correct birthday day period start Signed-off-by: Charlie Egan --- cmd/day.go | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/day.go b/cmd/day.go index 6711acf..cbed4e1 100644 --- a/cmd/day.go +++ b/cmd/day.go @@ -33,7 +33,7 @@ var dayCmd = &cobra.Command{ } // set the notification period - periodStart := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day()-1, 0, 0, 0, 0, time.UTC) + periodStart := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 0, 0, 0, 0, time.UTC) alert, title, body, err := specialdays.Generate(records, periodStart, 1, true) if err != nil { log.Fatalf("failed to generate alert message: %s", err) diff --git a/go.mod b/go.mod index 09a3f93..802ec7f 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/charlieegan3/special-days v0.0.0-20210701231319-175bc74510e3 github.com/disintegration/imaging v1.6.2 github.com/emersion/go-vcard v0.0.0-20210521075357-3445b9171995 - github.com/gomarkdown/markdown v0.0.0-20220627144906-e9a81102ebeb // indirect + github.com/gomarkdown/markdown v0.0.0-20220627144906-e9a81102ebeb github.com/gregdel/pushover v1.1.0 github.com/maxatome/go-testdeep v1.10.0 github.com/mehanizm/airtable v0.2.4