Update deprecated moment.js method