parse-messy-time
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -310,2 +310,3 @@ var months = [ | ||
var hms = [ Number(m[1]), null, null ]; | ||
if (/^am/.test(next) && hms[0] == 12) hms[0] -= 12; | ||
if (/^pm/.test(next) && hms[0] < 12) hms[0] += 12; | ||
@@ -312,0 +313,0 @@ if (m[2]) hms[1] = Number(m[2]); |
{ | ||
"name": "parse-messy-time", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "parse messy human date and time strings", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,2 +14,3 @@ var parse = require('../'); | ||
t.equal(strftime('%T', parse('11pm')), '23:00:00'); | ||
t.equal(strftime('%T', parse('12:30am')), '00:30:00'); | ||
t.equal(strftime('%T', parse('12:30pm')), '12:30:00'); | ||
@@ -16,0 +17,0 @@ t.equal( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20408
509