Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't obtain triggers for job: The time zone ID '' was not found on the local computer #51

Closed
Gamain opened this issue Aug 8, 2018 · 2 comments

Comments

@Gamain
Copy link

Gamain commented Aug 8, 2018

One or more errors occurred. (Couldn't obtain triggers for job: The time zone ID 'China Standard Time' was not found on the local computer.)
Couldn't obtain triggers for job: The time zone ID 'China Standard Time' was not found on the local computer.
The time zone ID 'China Standard Time' was not found on the local computer.
Could not find file '/usr/share/zoneinfo/China Standard Time'.

@toftware
Copy link

toftware commented Aug 8, 2018

Sounds more like a Quartz issue than CrystalQaurtz, i bet you have scheduled one thing from maybe Windows and are hosting on Linux. The timezone names are different between them.

@guryanovev
Copy link
Owner

This issue is more for Quartz.NET itself, not CrystalQuartz Panel. According to the docs, there might be problems on linux related to timezones:

KNOWN ISSUES

  • Issues with time zone ids between Windows and Linux, they use different ids for the same zone
  • No remoting support for .NET Core

You might need to use specific timezone id in trigger initialization code:

// make sure id "GMT Standard Time" is known by the system
var timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time"); 

TriggerBuilder
     .Create()
     .WithIdentity("...")
     .StartNow()
     .WithCronSchedule("...", csb => csb.InTimeZone(timeZoneInfo)).Build();

Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants