Skip to content

Commit

Permalink
#376: Set Timezone to system Default.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnitsch committed Jun 3, 2024
1 parent cbe2eec commit d40511d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private static List<Instant> parseToInterventionSchedulesForScheduledTrigger(Tri
if (CronExpression.isValidExpression(cronString)) {
try {
CronExpression cronExpression = new CronExpression(cronString);
cronExpression.setTimeZone(TimeZone.getTimeZone(ZoneId.of("Europe/Vienna")));
cronExpression.setTimeZone(TimeZone.getTimeZone(ZoneId.systemDefault()));
Instant currentDate = cronExpression.getNextValidTimeAfter(Date.from(start)).toInstant();
while (currentDate.isBefore(end)) {
events.add(currentDate);
Expand Down

0 comments on commit d40511d

Please sign in to comment.