You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var webTimezoneOffset = TimeSpan.FromMilliseconds(task.WebTimezoneOffset);
var webTimezone = TimeZoneInfo.CreateCustomTimeZone("Current Web Timezone", webTimezoneOffset, null, null);
var trigger = TriggerBuilder.Create()
.WithIdentity(task.TaskId.ToString())
.WithCronSchedule(task.CronExpression, t => t.InTimeZone(webTimezone))
.StartAt(task.StartTime - new TimeSpan(0, 0, 1))
.Build();
In that case I get the following error:
Quartz.JobPersistenceException: Couldn't retrieve trigger: The time zone ID 'Current Web Timezone' was not found on the local computer. ---> System.TimeZoneNotFoundException: The time zone ID 'Current Web Timezone' was not found on the local computer.
at System.TimeZoneInfo.FindSystemTimeZoneById(String id)
at Quartz.Util.TimeZoneUtil.FindTimeZoneById(String id) in c:\Program Files (x86)\Jenkins\workspace\Quartz.NET\src\Quartz\Util\TimeZoneUtil.cs:line 110
I use the following code to schedule a job:
In that case I get the following error:
As I researched the issue in method LoadExtendedTriggerProperties in the file https://github.com/quartznet/quartznet/blob/045344fe21cbdb2229cb6ac496652941a275e61b/src/Quartz/Impl/AdoJobStore/CronTriggerPersistenceDelegate.cs
I wonder to know if it possible to add support saving time zone offset.
The text was updated successfully, but these errors were encountered: