Skip to content

Commit

Permalink
Merge pull request #2304 from plotly/drop-tz
Browse files Browse the repository at this point in the history
drop timezone from test_dashboard output
  • Loading branch information
alexcjohnson authored Jan 30, 2018
2 parents c842e99 + 6471256 commit f04b081
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/util/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ');
};

Expand Down

0 comments on commit f04b081

Please sign in to comment.