Skip to content

Commit

Permalink
Forbidden API check and checkstyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekrb19 committed Oct 16, 2024
1 parent 80df85d commit 5dd0e63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ private Optional<DateTime> getNextExecutionTime()
if (zonedDateTime.isPresent()) {
final ZonedDateTime zdt = zonedDateTime.get();
final Instant instant = zdt.toInstant();
return Optional.of(new DateTime(instant.toEpochMilli(), DateTimeZone.forID(zdt.getZone().getId())));
return Optional.of(new DateTime(instant.toEpochMilli(), DateTimes.inferTzFromString(zdt.getZone().getId())));
} else {
return Optional.empty();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,4 +368,4 @@ private static Stream<InputSplit<List<CloudObjectLocation>>> toSplitStream(
.collect(Collectors.toList()))
);
}
}
}

0 comments on commit 5dd0e63

Please sign in to comment.