Hangfire.RecurringJobAdmin icon indicating copy to clipboard operation
Hangfire.RecurringJobAdmin copied to clipboard

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

Open mack0196 opened this issue 3 years ago • 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);

mack0196 avatar Mar 15 '22 20:03 mack0196