The outputFormat is correctly applied to {{moment-format}}, but not to the moment object that can be used in ES6.
I import the moment object like this import moment from 'moment'; and use it like this in an action inside a component this.set('data.myDateAsString', moment(dateObjectFromUi).format());. The output that I get is formatted in the original default format and not in the default format that I defined in the environment.js.
I have the following definition for moment in my environment.js:
The outputFormat is correctly applied to {{moment-format}}, but not to the moment object that can be used in ES6.
I import the moment object like this
import moment from 'moment';
and use it like this in an action inside a componentthis.set('data.myDateAsString', moment(dateObjectFromUi).format());
. The output that I get is formatted in the original default format and not in the default format that I defined in the environment.js.Used Versions: