diff options
author | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2018-11-08 19:49:54 +0300 |
---|---|---|
committer | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2019-02-06 19:33:57 +0300 |
commit | 5402f3c360eaa668782d53cdf04fcc1cb0a400ec (patch) | |
tree | a6d8baf2283139613178fbb9f3274f1e4cbc0cf5 /app/helpers | |
parent | 27f7771ae1a4b5f9d973a55ccbbbe30b0e05f100 (diff) |
Add default setting for first day of the week preference
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/preferences_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb index 301608175b2..3371592a36a 100644 --- a/app/helpers/preferences_helper.rb +++ b/app/helpers/preferences_helper.rb @@ -43,8 +43,13 @@ module PreferencesHelper ] end + def default_first_day_of_week + Date::DAYNAMES[Gitlab::CurrentSettings.default_first_day_of_week] + end + def first_day_of_week_choices [ + ["System Default (#{default_first_day_of_week})", nil], ['Sunday', 0], ['Monday', 1] ] |