[PATCH] testbot/web: Fix showing the local job / task completion time.
Francois Gouget
fgouget at codeweavers.com
Mon Dec 10 09:48:12 CST 2018
The ShowDateTime() JavaScript call must be on its own line otherwise
it's ignored.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/web/JobDetails.pl | 5 +++--
testbot/web/index.pl | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl
index 1f77804be7..3e4f94d008 100644
--- a/testbot/web/JobDetails.pl
+++ b/testbot/web/JobDetails.pl
@@ -621,8 +621,9 @@ sub GenerateDataCell($$$$$)
print "<td><a id='$TagId' class='title' title='",
strftime("%Y/%m/%d %H:%M:%S", localtime($StepTask->Ended)),
"'>", DurationToString($Duration), "</a>\n";
- print "<script type='text/javascript'><!-- ShowDateTime(",
- $StepTask->Ended, ",'$TagId'); --></script>\n";
+ print "<script type='text/javascript'><!--\n";
+ print " ShowDateTime(", $StepTask->Ended, ",'$TagId');\n";
+ print "--></script>\n";
print "</td>\n";
}
else
diff --git a/testbot/web/index.pl b/testbot/web/index.pl
index 4f1c191190..39fea3e7a3 100644
--- a/testbot/web/index.pl
+++ b/testbot/web/index.pl
@@ -165,8 +165,9 @@ sub GenerateDataCell($$$$)
print "<td><a id='$TagId' class='title' title='",
strftime("%Y/%m/%d %H:%M:%S", localtime($Item->Ended)),
"'>", DurationToString($Duration), "</a>\n";
- print "<script type='text/javascript'><!-- ShowDateTime(",
- $Item->Ended, ",'$TagId'); --></script>\n";
+ print "<script type='text/javascript'><!--\n";
+ print " ShowDateTime(", $Item->Ended, ",'$TagId');\n";
+ print "--></script>\n";
print "</td>\n";
}
else
--
2.19.2
More information about the wine-devel
mailing list