This is from Quartz Scheduler's javadocs for method setTimeZone
of class CronTrigger
:
If setCronExpression(CronExpression) is called after this method, the TimeZon setting on the CronExpression will "win". However if setCronExpression(String) is called after this method, the time zone applied by this method will remain in effect, since the String cron expression does not carry a time zone!
Can anybody please explain whats the difference in calling both setters in different sequences?