Skip to content

Commit

Permalink
fix for job start-time, which is a time-only field
Browse files Browse the repository at this point in the history
  • Loading branch information
Erwin Dondorp committed Apr 10, 2022
1 parent 5665801 commit d121bfb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion saltgui/static/scripts/output/OutputHighstateTaskFull.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export class OutputHighstateTaskFull {
}

if (pTask.start_time) {
txt += "\n Started: " + Output.dateTimeStr(pTask.start_time);
const startTime = Output.dateTimeStr("1999, Sep 9 " + pTask.start_time, null, null, true);
txt += "\n Started: " + startTime;
}

if (pTask.duration >= 10) {
Expand Down
4 changes: 2 additions & 2 deletions saltgui/static/scripts/output/OutputHighstateTaskSaltGui.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export class OutputHighstateTaskSaltGui {

if (pTask["start_time"] !== undefined) {
taskDiv.append(document.createElement("br"));
taskDiv.append(document.createTextNode(
indent + "Started at " + Output.dateTimeStr(pTask.start_time)));
const startTime = Output.dateTimeStr("1999, Sep 9 " + pTask.start_time, null, null, true);
taskDiv.append(document.createTextNode(indent + "Started at " + startTime));
}

if (pTask["duration"] !== undefined) {
Expand Down
3 changes: 2 additions & 1 deletion saltgui/static/scripts/output/OutputHighstateTaskTerse.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export class OutputHighstateTaskTerse {
txt += "Clean";
}
if (pTask.start_time) {
txt += " - Started: " + Output.dateTimeStr(pTask.start_time);
const startTime = Output.dateTimeStr("1999, Sep 9 " + pTask.start_time, null, null, true);
txt += " - Started: " + startTime;
}
if (pTask.duration >= 10) {
txt += " - Duration: " + Output.getDuration(pTask.duration);
Expand Down

0 comments on commit d121bfb

Please sign in to comment.