One Time job based on a StartAt of another Timezone #1897
-
|
If I want to perform a one time job relative to a Time in another TimeZone, other than calculating the appropriate StartAt, is there anyway to tell Quartz the timezone? With CronSchedule, you can indicate what timezone it is supposed to follow. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Simple trigger doesn't care about time zones, it only takes start time as UTC (I'm assuming trigger that doesn't repeat and thus we just want single fire). So basically you need to create a |
Beta Was this translation helpful? Give feedback.
Simple trigger doesn't care about time zones, it only takes start time as UTC (I'm assuming trigger that doesn't repeat and thus we just want single fire). So basically you need to create a
DateTimeOffsetat source and then convert it to target time zone usingTimeZoneInfo's methods (TimeZoneInfo of target).