Quartz.Net how to create a daily schedule that does not gain 1 minute per day

You aren’t specifying the interval which happens to default to 1 minute, so it assumes you want to run the job every minute.

Try

 ITrigger trigger = TriggerBuilder.Create()
    .WithDailyTimeIntervalSchedule
      (s => 
         s.WithIntervalInHours(24)
        .OnEveryDay()
        .StartingDailyAt(TimeOfDay.HourAndMinuteOfDay(13, 0))
      )
    .Build();

The default should be to run every day, so the OnEveryDay() isn’t really needed.

Not sure why you are seeing local and UTC, as all my times are displayed in UTC.

Leave a Comment