momentjs parsing seems to be broken in pdfcrowd. The JS in the following page attempts to construct a momentjs object and display it. moment('201505', 'YYYYMM') results in an invalid moment object when executed in pdfcrowd. I tried a couple other format strings in the constructor (not just "YYYYMM") and got the same result.
Any insight is appreciated.
<html>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.2/moment.min.js"></script>
<script type="text/javascript">
window.onload = function () {
var body = document.querySelector('body'),
date = moment('201505', 'YYYYMM');
body.textContent = date.format('MMM YYYY');
};
</script>
</head>
<body>
Type your HTML here ...
</body>
</html>