Merge pull request #969 from turt2live/travis/12h-ts-collision

Remove space between time and AM/PM
pull/21833/head
Matthew Hodgson 2017-05-30 17:23:04 +01:00 committed by GitHub
commit 9975514850
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ function twelveHourTime(date) {
const minutes = pad(date.getMinutes()); const minutes = pad(date.getMinutes());
const ampm = date.getHours() >= 12 ? 'PM' : 'AM'; const ampm = date.getHours() >= 12 ? 'PM' : 'AM';
hours = pad(hours ? hours : 12); hours = pad(hours ? hours : 12);
return `${hours}:${minutes} ${ampm}`; return `${hours}:${minutes}${ampm}`;
} }
module.exports = { module.exports = {