diff --git a/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/trigger/schedule/tool/CronEvalTool.java b/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/trigger/schedule/tool/CronEvalTool.java index d513bd1cd77f2..9ebc3adc291a1 100644 --- a/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/trigger/schedule/tool/CronEvalTool.java +++ b/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/trigger/schedule/tool/CronEvalTool.java @@ -20,7 +20,6 @@ import java.util.Arrays; import java.util.List; import java.util.Locale; -import java.util.TimeZone; public class CronEvalTool extends LoggingAwareCommand { @@ -31,7 +30,7 @@ public static void main(String[] args) throws Exception { private static final DateTimeFormatter UTC_FORMATTER = DateTimeFormat.forPattern("EEE, d MMM yyyy HH:mm:ss") .withZone(DateTimeZone.UTC).withLocale(Locale.ROOT); private static final DateTimeFormatter LOCAL_FORMATTER = DateTimeFormat.forPattern("EEE, d MMM yyyy HH:mm:ss Z") - .withZone(DateTimeZone.forTimeZone(TimeZone.getDefault())); + .withZone(DateTimeZone.forTimeZone(null)); private final OptionSpec countOption; private final OptionSpec arguments;