Fix off-by-one-month in timestamp conversion. refs #2883
authorTom Clegg <tom@curoverse.com>
Mon, 23 Jun 2014 20:39:55 +0000 (16:39 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 23 Jun 2014 20:39:55 +0000 (16:39 -0400)
apps/workbench/app/assets/javascripts/log_viewer.js

index 101b4a5e807d6715a1264aa8bad89e61b9a86c12..74bba133fbc87fd99f34eaff0c2b4155cfa9e90e 100644 (file)
@@ -15,7 +15,7 @@ function addToLogViewer(logViewer, lines, taskState) {
         var v = lines[a].match(re);
         if (v != null) {
 
-            var ts = new Date(Date.UTC(v[2], v[3], v[4], v[6], v[7], v[8]));
+            var ts = new Date(Date.UTC(v[2], v[3]-1, v[4], v[6], v[7], v[8]));
 
             v11 = v[11];
             if (typeof v[11] === 'undefined') {