YARN-9141. [Submarine] JobStatus outputs with system UTC clock, not local clock. (Zac Zhou via wangda)

Change-Id: Ib2b17cf7860ddc9188f06498086de3326bc09519
This commit is contained in:
Wangda Tan 2019-01-06 10:24:29 -08:00
parent 650b9cbe16
commit 8f004fe4e0

View File

@ -18,7 +18,7 @@
package org.apache.hadoop.yarn.submarine.common.api;
import java.io.PrintStream;
import java.time.Instant;
import java.time.LocalDateTime;
import java.util.List;
/**
@ -34,7 +34,7 @@ public class JobStatus {
public void nicePrint(PrintStream out) {
out.println(
"Job Name=" + this.jobName + ", status=" + state.name() + " time="
+ Instant.now());
+ LocalDateTime.now());
if (JobState.isFinal(this.state)) {
return;
}