FIX: ensures pikaday picker is showing in UTC (#7968)

This commit is contained in:
Joffrey JAFFEUX 2019-08-06 08:41:38 +02:00 committed by GitHub
parent d8dfa87f24
commit f4543ff02a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,6 @@ export default Ember.Component.extend({
format: "YYYY-MM-DD",
reposition: false,
firstDay: 1,
defaultDate: moment(this.date, this.dateFormat).toDate(),
setDefaultDate: true,
keyboardInput: false,
i18n: {
@ -420,7 +419,7 @@ export default Ember.Component.extend({
}
Ember.run.schedule("afterRender", () => {
this._picker.setDate(date, true);
this._picker.setDate(moment.utc(date), true);
});
},