We have a PDF that we need to convert some dates to the users local timezone, so we've got moment.js loaded to help with this in our app.
When loading moment.js we get the common "Value is not an object" error
The issue seems to be that date.getTimezoneOffset() isn't supported by Prince Javascript, which is being used in moment.js, if I add Date.prototype.getTimezoneOffset = function() { return } for debugging purposes the pdf generates fine with moment.js included.
Is this going to be supported anytime soon? Am I missing something?
When loading moment.js we get the common "Value is not an object" error
The issue seems to be that date.getTimezoneOffset() isn't supported by Prince Javascript, which is being used in moment.js, if I add Date.prototype.getTimezoneOffset = function() { return } for debugging purposes the pdf generates fine with moment.js included.
Is this going to be supported anytime soon? Am I missing something?