Scheduled event timezone

0
Is there a way to access the Scheduled event timezone setting from the Java API? I want to improve the Queue module in such a way that the scheduled event timezone is available while running microflows from the queue. 
asked
2 answers
0

Found the solution by browsing the Mendix source code:

((Session)this.getContext().getSession()).setTimeZone(TimeZoneUtil.getScheduledEventTimeZoneObject((IContext)this.getContext(), (LocalComponent)super.component(), (String)timeZone.getID()));

answered
0

In the end the following code registers the scheduled events:

TimeZone timeZone = TimeZone.getTimeZone(localComponent.runtime().getModelProjectStore().getProjectSettings().getModelSettings().getScheduledEventTimeZoneCode());

However, using the regular Java API we cannot access this code unfortunately and I do not want to use reflection libs in the Queue module.

answered