diff --git a/lib/util.js b/lib/util.js index 860ff58..e2eb156 100644 --- a/lib/util.js +++ b/lib/util.js @@ -111,7 +111,7 @@ function decodeEscapeSequence(str, base) { function parseTime(t) { t = t.toUpperCase(); const parts = t.split(':'); - let isPM = (parts[1] && (parts[1].toLowerCase().indexOf('pm') > -1) || (parts[1].toLowerCase().indexOf('p.m.') > -1)); + let isPM = (parts[1] && (parts[1].toLowerCase().indexOf('pm') > -1) || (parts[1].toLowerCase().indexOf('p.m.') > -1) || (parts[1].toLowerCase().indexOf('p. m.') > -1)); let hour = parseInt(parts[0], 10); const min = parseInt(parts[1], 10); hour = isPM && hour < 12 ? hour + 12 : hour;