HangfireIO / Cronos

A fully-featured .NET library for working with Cron expressions. Built with time zones in mind and intuitively handles daylight saving time transitions
MIT License
974 stars 114 forks source link

invalid value for system.timers.timer #50

Closed arun069 closed 6 months ago

arun069 commented 2 years ago

hi, I am getting error when I am setting CronExpression for month.

Error Message: Invalid value '2376995117.7807' for parameter 'interval'.'

// Cron setting services.AddCronJob(c => { c.TimeZoneInfo = TimeZoneInfo.Local; c.CronExpression = @"0 0 1 "; });

when google for this issue I found that System.Timers.Timer only store maximum 25 day time value

odinserj commented 2 years ago

Please note that the Cronos package doesn't contain the AddCronJob method and doesn't have any integration with System.Timers.Timer class, so it comes from another library and this issues doesn't relate to Cronos.

mattheys commented 1 year ago

Looks like you are following this pattern https://github.com/dotnet-labs/ServiceWorkerCronJob

Check the existing issue. https://github.com/dotnet-labs/ServiceWorkerCronJob/issues/14