bamotav/Hangfire.RecurringJobAdmin

Time Zone ID not Found; use Hangfire.Core.ITimeZoneResolver

Opened this issue · 0 comments

Instead of using system times zones via TimeZoneInfo; ctor resolve and use Hangfire.Core.ITimeZoneResolver

public static DateTime ChangeTimeZone(this DateTime dateTime, string timeZoneId) => TimeZoneInfo.ConvertTimeBySystemTimeZoneId(dateTime, timeZoneId);