FIX: Could not create topic timers for certain locales.

https://meta.discourse.org/t/topic-timer-doesnt-work-for-fa-ir-locale/83702/2
This commit is contained in:
Guo Xiang Tan 2018-03-26 10:51:49 +08:00
parent 2f61780a49
commit 252e58dfe9

View File

@ -162,7 +162,7 @@ export default ComboBoxComponent.extend(DatetimeMixin, {
const { time } = this._updateAt(value); const { time } = this._updateAt(value);
if (time && !Ember.isEmpty(value)) { if (time && !Ember.isEmpty(value)) {
input = time.format(FORMAT); input = time.locale('en').format(FORMAT);
} }
this.setProperties({ input, value }); this.setProperties({ input, value });