Merge branch 'hotfix/21.56.9' into master
[gitter.git] / public / js / utils / moment-wrapper.js
blob62fd4d8021b07063277c0ab083c3ca15f3fad023
1 'use strict';
3 /* This require looks HORRIBLE, but it's a way to use the non-aliased moment */
4 /* Webpack config will alias all usages of moment to this module */
5 var realMoment = require('../../../node_modules/moment');
6 var context = require('gitter-web-client-context');
8 realMoment.locale(context.lang());
9 realMoment.defaultFormat = 'YYYY-MM-DDTHH:mm:ss.SSSZ';
11 module.exports = realMoment;