When testing using jasmine, I am getting this error.
TypeError: moment.tz is not a function
My code that I try to test is
l
For Node.js, According to the original documentation: moment js documentation
You should do
npm install moment-timezone
Then use it like this
var moment = require('moment-timezone'); moment().tz("America/Los_Angeles").format();