From 252e58dfe995aff51fc15ba2541303a3b4b55988 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 26 Mar 2018 10:51:49 +0800 Subject: [PATCH] FIX: Could not create topic timers for certain locales. https://meta.discourse.org/t/topic-timer-doesnt-work-for-fa-ir-locale/83702/2 --- .../select-kit/components/future-date-input-selector.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/select-kit/components/future-date-input-selector.js.es6 b/app/assets/javascripts/select-kit/components/future-date-input-selector.js.es6 index 296da5a1fd9..580c351bb45 100644 --- a/app/assets/javascripts/select-kit/components/future-date-input-selector.js.es6 +++ b/app/assets/javascripts/select-kit/components/future-date-input-selector.js.es6 @@ -162,7 +162,7 @@ export default ComboBoxComponent.extend(DatetimeMixin, { const { time } = this._updateAt(value); if (time && !Ember.isEmpty(value)) { - input = time.format(FORMAT); + input = time.locale('en').format(FORMAT); } this.setProperties({ input, value });