'Can I define a time zone for the Quarkus Scheduler
I need to execute a method in my Quarkus application at a fixed time in a given time zone. I found the "quarkus-scheduler" extension, which provides the "@Scheduled" annotation, but this does not seem to offer any possibility to set the time zone.
Both the Java EE "@Schedule" and the Spring "@Scheduled" annotation have a corresponding parameter, but how can I achieve this in Quarkus?
Solution 1:[1]
It's not possible at the moment. Quarkus scheduler is using the default time-zone of the JVM running the app. I've created a new issue to track this feature request: https://github.com/quarkusio/quarkus/issues/25159.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Martin Kouba |
