has no method 'trim'
Closed this issue · 3 comments
The below test case works in 0.1.3, but doesn't work in 0.1.4. I'll try to help and find out why soon.
Test Case:
var zoneinfo = require('zoneinfo'),
TZDate = zoneinfo.TZDate;
var local_date = new TZDate(Date.now());
local_date.setTimezone("America/Chicago");
console.log(local_date);
Error:
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object 1312511924137 has no method 'trim'
at new TZDate (/home/jwcooper/dev/apps/coobro/api/node_modules/zoneinfo/index.js:354:15)
at Object. (/home/jwcooper/dev/apps/coobro/api/models/test.js:5:19)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array. (module.js:423:10)
at EventEmitter._tickCallback (node.js:126:26)
Odd. I'll look into it sometime in the next week or so and get back to you.
This should now be fixed. Test case included so it shouldn't revert.
Fantastic, thanks!