Comparing version 0.3.0 to 0.3.1
@@ -252,3 +252,8 @@ var bindings = require('./time'); | ||
exports.extend = function extend(date) { | ||
return date.__proto__ = _Date.prototype; | ||
date.getTimezone = getTimezone; | ||
date.setTimezone = setTimezone; | ||
date.getTimeZone = getTimezone; // Remove... | ||
date.setTimeZone = setTimezone; // Remove... | ||
date.getTimezoneAbbr = getTimezoneAbbr; | ||
return date; | ||
} | ||
@@ -255,0 +260,0 @@ |
{ | ||
"name": "time", | ||
"description": "\"time.h\" bindings for NodeJS", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -61,4 +61,5 @@ var assert = require('assert'); | ||
assert.equal('setTimezone' in regularDate, false); | ||
time.extend(regularDate); | ||
var rtn = time.extend(regularDate); | ||
assert.equal('setTimezone' in regularDate, true); | ||
assert.ok(rtn === regularDate); // Should return the same instance | ||
@@ -65,0 +66,0 @@ |
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
22464
295