parse-messy-time
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -181,3 +181,3 @@ var months = [ | ||
out.setSeconds(res.seconds === undefined ? 0 : res.seconds); | ||
if (res.date) out.setDate(res.date); | ||
if (res.date !== undefined) out.setDate(res.date); | ||
@@ -184,0 +184,0 @@ if (typeof res.month === 'number') { |
{ | ||
"name": "parse-messy-time", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "parse messy human date and time strings", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "tape test/*.js" | ||
"test": "TZ=US/Pacific tape test/*.js" | ||
}, | ||
@@ -19,0 +19,0 @@ "repository": { |
@@ -180,3 +180,8 @@ var parse = require('../'); | ||
); | ||
t.equal( | ||
strftime('%F %T', parse('14 days ago', optsd)), | ||
'2015-03-31 09:46:01', | ||
'14 days ago' | ||
); | ||
t.end(); | ||
}); |
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
19655
486