diff options
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java index 5c2a5c1a8c..ee72a4c838 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java @@ -27,6 +27,7 @@ import com.google.devtools.common.options.OptionsBase; import java.io.IOException; import java.io.OutputStream; import java.io.PrintStream; +import java.time.ZoneId; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; import java.util.EnumSet; @@ -359,6 +360,6 @@ public class BlazeCommandEventHandler implements EventHandler { * @return a string representing the current time, eg "04-26 13:47:32.124". */ protected String timestamp() { - return TIMESTAMP_FORMAT.format(ZonedDateTime.now()); + return TIMESTAMP_FORMAT.format(ZonedDateTime.now(ZoneId.systemDefault())); } } |