Skip to content

Commit 6306aab

Browse files
committed
drop timezone from test_dashboard output
I'm sure we could make a regex that works everywhere, but is it really worth the trouble?
1 parent fdf20cb commit 6306aab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tasks/util/common.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ exports.doesFileExist = function(filePath) {
4444
exports.formatTime = function(date) {
4545
return [
4646
date.toLocaleDateString(),
47-
date.toLocaleTimeString(),
48-
date.toString().match(/\(([A-Za-z\s\u4E00-\u9FCC].*)\)/)[1] // fix Chinese datetime string error. #1630
47+
date.toLocaleTimeString()
4948
].join(' ');
5049
};
5150

0 commit comments

Comments
 (0)