From a62890e0494c3c8d034c3ac2d7896835ad481a24 Mon Sep 17 00:00:00 2001 From: Rui Ban Date: Mon, 3 Dec 2018 15:09:28 +0800 Subject: [PATCH] fix date on dashboard --- src/dashboard-client/src/store.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/dashboard-client/src/store.js b/src/dashboard-client/src/store.js index abf16cf8f..6d892f005 100644 --- a/src/dashboard-client/src/store.js +++ b/src/dashboard-client/src/store.js @@ -63,7 +63,6 @@ function findJob (build, jobId) { function toDate (s) { let a = s.split(/[^0-9]/) - a[1] = a[1] - 1 let dateStr = a[0] + '-' + a[1] + '-' + a[2] + ' ' + a[3] + ':' + a[4] + 'Z' return new Date(dateStr)