dates-range-parser
Advanced tools
Comparing version 1.0.4 to 1.0.5
12
index.js
@@ -45,8 +45,4 @@ /*! | ||
value: { | ||
fromDate: drp.UTC | ||
? new Date(r.start).toISOString() | ||
: new Date(r.start).toString(), | ||
toDate: drp.UTC | ||
? new Date(r.end).toISOString() | ||
: new Date(r.end).toString(), | ||
from: r.start, | ||
to: r.end, | ||
timeRange: v, | ||
@@ -119,3 +115,5 @@ }, | ||
d[1]--; | ||
return drp.UTC ? new Date(Date.UTC(...d)) : new Date(...d); | ||
return drp.UTC | ||
? new Date(Date.UTC(...d)).getTime() | ||
: new Date(...d).getTime(); | ||
} | ||
@@ -122,0 +120,0 @@ |
{ | ||
"name": "dates-range-parser", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"author": "Xoredge <info@xoredge.com>", | ||
@@ -5,0 +5,0 @@ "description": "A simple parser for dates range", |
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
27612
515