Skip to content

Commit

Permalink
Correct birthday day period start
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
  • Loading branch information
charlieegan3 committed Jun 30, 2022
1 parent df9e76b commit 3f488b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/day.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f488b5

Please sign in to comment.