update moment.js logic