From 6306aab07c90410433992affd37a8f3ed34b7d1d Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Mon, 29 Jan 2018 10:21:31 -0500 Subject: [PATCH] drop timezone from test_dashboard output I'm sure we could make a regex that works everywhere, but is it really worth the trouble? --- tasks/util/common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/util/common.js b/tasks/util/common.js index 2ca4f4fe87e..b9330febd56 100644 --- a/tasks/util/common.js +++ b/tasks/util/common.js @@ -44,8 +44,7 @@ exports.doesFileExist = function(filePath) { exports.formatTime = function(date) { return [ date.toLocaleDateString(), - date.toLocaleTimeString(), - date.toString().match(/\(([A-Za-z\s\u4E00-\u9FCC].*)\)/)[1] // fix Chinese datetime string error. #1630 + date.toLocaleTimeString() ].join(' '); };