Francois Gouget : testbot/web: The ISO 8601 date format uses dashes rather than slashes.

Alexandre Julliard julliard at winehq.org
Wed Jan 27 15:09:51 CST 2021


Module: tools
Branch: master
Commit: d1a934f039057c826b9e19e4d9f67f0d1edeef7c
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=d1a934f039057c826b9e19e4d9f67f0d1edeef7c

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Jan 27 04:04:34 2021 +0100

testbot/web: The ISO 8601 date format uses dashes rather than slashes.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/lib/ObjectModel/CGI/CollectionBlock.pm | 6 +++---
 testbot/web/JobDetails.pl                      | 2 +-
 testbot/web/index.pl                           | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/testbot/lib/ObjectModel/CGI/CollectionBlock.pm b/testbot/lib/ObjectModel/CGI/CollectionBlock.pm
index f9e590c..b523d14 100644
--- a/testbot/lib/ObjectModel/CGI/CollectionBlock.pm
+++ b/testbot/lib/ObjectModel/CGI/CollectionBlock.pm
@@ -85,7 +85,7 @@ function Pad2(n)
 function ShowDateTime(Sec1970, Id, Attr)
 {
   var Dt = new Date(Sec1970 * 1000);
-  var Pretty = Dt.getFullYear() + '/' + Pad2(Dt.getMonth() + 1) + '/' +
+  var Pretty = Dt.getFullYear() + '-' + Pad2(Dt.getMonth() + 1) + '-' +
                Pad2(Dt.getDate()) + ' ' + Pad2(Dt.getHours()) + ':' +
                Pad2(Dt.getMinutes()) + ':' + Pad2(Dt.getSeconds())
   if (Id != null)
@@ -461,7 +461,7 @@ sub GetDisplayValue($$$)
       {
         $Value =
          "<noscript><div>" .
-         strftime("%Y/%m/%d %H:%M:%S", localtime($Value)) . "</div></noscript>\n" .
+         strftime("%Y-%m-%d %H:%M:%S", localtime($Value)) . "</div></noscript>\n" .
 "<script type='text/javascript'><!--\n" .
          "ShowDateTime($Value);\n" .
          "//--></script>\n";
@@ -487,7 +487,7 @@ sub GetEscapedDisplayValue($$$)
       $Value = "<script type='text/javascript'><!--\n" .
                "ShowDateTime($Value);\n" .
                "//--></script><noscript><div>" .
-               strftime("%Y/%m/%d %H:%M:%S", localtime($Value)) .
+               strftime("%Y-%m-%d %H:%M:%S", localtime($Value)) .
                "</div></noscript>\n";
     }
   }
diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl
index 5a484da..7a4f4fc 100644
--- a/testbot/web/JobDetails.pl
+++ b/testbot/web/JobDetails.pl
@@ -696,7 +696,7 @@ sub GenerateDataCell($$$$$)
       my $Duration = $StepTask->Ended - $StepTask->Started;
       my $TagId = "E". $StepTask->Id;
       print "<td><a id='$TagId' class='title' title='",
-            strftime("%Y/%m/%d %H:%M:%S", localtime($StepTask->Ended)),
+            strftime("%Y-%m-%d %H:%M:%S", localtime($StepTask->Ended)),
             "'>", DurationToString($Duration), "</a>\n";
       print "<script type='text/javascript'><!--\n";
       print "  ShowDateTime(", $StepTask->Ended, ",'$TagId');\n";
diff --git a/testbot/web/index.pl b/testbot/web/index.pl
index 39fea3e..088aea1 100644
--- a/testbot/web/index.pl
+++ b/testbot/web/index.pl
@@ -163,7 +163,7 @@ sub GenerateDataCell($$$$)
       my $Duration = $Item->Ended - $Item->Submitted;
       my $TagId = "E". $Item->Id;
       print "<td><a id='$TagId' class='title' title='",
-            strftime("%Y/%m/%d %H:%M:%S", localtime($Item->Ended)),
+            strftime("%Y-%m-%d %H:%M:%S", localtime($Item->Ended)),
             "'>", DurationToString($Duration), "</a>\n";
       print "<script type='text/javascript'><!--\n";
       print "  ShowDateTime(", $Item->Ended, ",'$TagId');\n";




More information about the wine-cvs mailing list