diff --git a/package.json b/package.json index 008438e..8b49950 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,12 @@ "test": "tap test.js --cov" }, "dependencies": { - "bindings": "~1.2.1", - "nan": "~2.3.3" + "bindings": "^1.2.1", + "nan": "^2.3.3" }, "devDependencies": { - "node-gyp": "~3.0.3", - "tap": "~2.1.0" + "node-gyp": "^3.0.3", + "tap": "^14.11.0" }, "license": "MIT", "author": "Evan Lucas ", diff --git a/src/binding.cc b/src/binding.cc index 51e0795..46bb9c6 100644 --- a/src/binding.cc +++ b/src/binding.cc @@ -18,7 +18,7 @@ NAN_METHOD(Reset) { #else tzset(); #endif - Date::DateTimeConfigurationChangeNotification(isolate); + isolate->DateTimeConfigurationChangeNotification(Isolate::TimeZoneDetection::kRedetect); } NAN_MODULE_INIT(Init) { diff --git a/test.js b/test.js index ce7ed5c..24705f2 100644 --- a/test.js +++ b/test.js @@ -13,7 +13,7 @@ test('should be able to reset the timezone', function(t) { reset() var d2 = new Date('10/20/2015 8:50:00 AM UTC') - t.equal(d2.toString(), 'Mon Oct 19 2015 22:50:00 GMT-1000 (HST)') + t.equal(d2.toString(), 'Mon Oct 19 2015 22:50:00 GMT-1000 (Hawaii-Aleutian Standard Time)') delete process.env.TZ