RecurringJob issue when using TimeZoneInfo.Local

recurring
Tags: #<Tag:0x00007f6e40ba8fa0>

#1

HI everyone,

I’m just getting started with Hangfire, great library.
But, when I’m scheduling recurring jobs I run into a problem.

When I schedule a job for my local timezone (Central European Summer Time) the field ‘Next Execution’ in the dashboard says ‘N/A’. When not using any timezone it schedules it 2 hours late because of the summer time in my local timezone…

Anyone had similar issues?


#2

Make sure the time zone exists on the machine where the job is running. Also, you can’t use custom time zone. TimeZone info are not serialized and only the name is stored.