fixed issue with invalid date format after moment.js changes