timezoned-date
Advanced tools
Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2
@@ -17,4 +17,3 @@ 'use strict'; | ||
OFFSET_SUFFIX = /(((GMT)?[\+\-]\d\d:?\d\d)|Z)(\s*\(.+\))?$/, | ||
OriginalDate = global.Date, | ||
systemOffset = -new OriginalDate().getTimezoneOffset(); | ||
OriginalDate = global.Date; | ||
@@ -104,3 +103,3 @@ var TimezonedDate = (function (_OriginalDate) { | ||
value: function makeConstructor() { | ||
var defaultOffset = arguments.length <= 0 || arguments[0] === undefined ? systemOffset : arguments[0]; | ||
var defaultOffset = arguments.length <= 0 || arguments[0] === undefined ? -new OriginalDate().getTimezoneOffset() : arguments[0]; | ||
@@ -107,0 +106,0 @@ return (function (_TimezonedDate) { |
{ | ||
"name": "timezoned-date", | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0-alpha.2", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "description": "Work with timezone-aware dates", |
Sorry, the diff of this file is not supported yet
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
14716
7
200