I'm using moment.js to format a date I get from the db service.
It works fine if I test the app in the browser but doesn't work if I test my app on the phone.
var availableAtDate = moment(new Date(newData.availableAt)).calendar();
Any thoughts?