grails / grails-quartz

This project provides integration of the Quartz scheduling framework into the Grails Framework
http://grails.org/plugin/quartz
Apache License 2.0
76 stars 90 forks source link

Timezone parameter is ignored #113

Closed connorskees closed 3 years ago

connorskees commented 3 years ago

Hello,

I am hoping to have a cron job be run everyday at 10:45 PST in order to interact with an API. The relevant code I'm using is,

CronExpression expression = new CronExpression("0 45 10 1/1 * ? *")
expression.timeZone = TimeZone.getTimeZone("America/Los_Angeles")
cron name: "foo", cronExpression: expression

which unfortunately runs at 10:45 UTC, regardless of the timezone specified (in this case, "America/Los_Angeles").

Is there an alternate way to specify timezone, or would this be considered a bug? I am using quartz version 2.0.13.