From 1ed4f0ee8a31bdc6a90b1fc01acf04ee819c38c6 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 11 Jul 2018 23:49:52 +0200 Subject: [PATCH] FIX: datepicker will now default to monday as first day This will be regardless of the user locale. Many users use english forums even if not from the US and would end up having sunday as the first day of the week in the calendar. This commit follows the international standard. --- app/assets/javascripts/discourse/components/date-picker.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/date-picker.js.es6 b/app/assets/javascripts/discourse/components/date-picker.js.es6 index 758f67622c2..982221fd906 100644 --- a/app/assets/javascripts/discourse/components/date-picker.js.es6 +++ b/app/assets/javascripts/discourse/components/date-picker.js.es6 @@ -21,7 +21,7 @@ export default Ember.Component.extend({ container: container || this.$()[0], bound: container === undefined, format: "YYYY-MM-DD", - firstDay: moment.localeData().firstDayOfWeek(), + firstDay: 1, i18n: { previousMonth: I18n.t("dates.previous_month"), nextMonth: I18n.t("dates.next_month"),