Skip to content

Commit

Permalink
Hotfix changed notify time
Browse files Browse the repository at this point in the history
  • Loading branch information
gueldenstone committed Apr 27, 2024
1 parent 886d2c2 commit 3314d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/calendar-bot/calendar-bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func main() {
timezone := time.Local
s := gocron.NewScheduler(timezone)
infoLog.Printf("Scheduling notifications for %s", notifyTime.Format("15:04"))
_, err = s.Every(1).Day().At(time.Now().Add(2 * time.Second)).Do(func() {
_, err = s.Every(1).Day().At(notifyTime).Do(func() {
infoLog.Println("Start Notification")
cal, err := calendar.NewNextcloudCalendar(conf.Calendar)
if err != nil {
Expand Down

0 comments on commit 3314d81

Please sign in to comment.