postgres-date
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -46,3 +46,5 @@ 'use strict' | ||
date.setTime(date.getTime() - offset) | ||
if (offset !== 0) { | ||
date.setTime(date.getTime() - offset) | ||
} | ||
} else { | ||
@@ -88,2 +90,6 @@ date = new Date(year, month, day, hour, minute, second, ms) | ||
function timeZoneOffset (isoDate) { | ||
if (isoDate.endsWith('+00')) { | ||
return 0 | ||
} | ||
var zone = TIME_ZONE.exec(isoDate.split(' ')[1]) | ||
@@ -90,0 +96,0 @@ if (!zone) return |
{ | ||
"name": "postgres-date", | ||
"main": "index.js", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Postgres date column parser", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
5915
94