mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 06:28:03 +08:00
FIX: ensures pikaday picker is showing in UTC (#7968)
This commit is contained in:
parent
d8dfa87f24
commit
f4543ff02a
|
@ -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);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user