Fix deprecation warning and locale data change of moment.js module.