Skip to content

Commit 3314d81

Browse files
committedApr 27, 2024··
Hotfix changed notify time
1 parent 886d2c2 commit 3314d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cmd/calendar-bot/calendar-bot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func main() {
9898
timezone := time.Local
9999
s := gocron.NewScheduler(timezone)
100100
infoLog.Printf("Scheduling notifications for %s", notifyTime.Format("15:04"))
101-
_, err = s.Every(1).Day().At(time.Now().Add(2 * time.Second)).Do(func() {
101+
_, err = s.Every(1).Day().At(notifyTime).Do(func() {
102102
infoLog.Println("Start Notification")
103103
cal, err := calendar.NewNextcloudCalendar(conf.Calendar)
104104
if err != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.