CronNET icon indicating copy to clipboard operation
CronNET copied to clipboard

Add timezone offset to CronDaemon

Open csim opened this issue 9 years ago • 2 comments

Thanks for posting this repo, it is helpful to me when creating simple scheduled background jobs.

I made a small change to allow a timezone offset such that a job can be scheduled with a specific timezone in mind. I thought this might be helpful to others.

Cheers!

csim avatar Jan 27 '16 22:01 csim

Thanks csim. I was wondering if this should be the responsibility of the task to offset the time?

kevincolyar avatar Jan 29 '16 17:01 kevincolyar

I guess it depends on whether ALL the tasks should use the same timezone. I suppose you could add a property to the task if you wanted tasks to be scheduled in multiple timezones. I am only interested in running tasks in one timezone.

Hangfire specifies the timezone at the task level.

csim avatar Jan 29 '16 17:01 csim