summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-27 15:43:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-27 15:43:26 +0000
commit78af4f429fc834197c6928fc49797fe710cf27fb (patch)
tree174a7b5101f567fc3dcc9227e2c8d4968af91ea6 /lib
parent3ef5daaf35185cf20a79ca38334abe0074f58549 (diff)
downloadredmine-78af4f429fc834197c6928fc49797fe710cf27fb.tar.gz
redmine-78af4f429fc834197c6928fc49797fe710cf27fb.zip
Adds support for saturday as the first week day (#7097).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5228 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/calendar.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/redmine/helpers/calendar.rb b/lib/redmine/helpers/calendar.rb
index ec474025b..9b3c0e816 100644
--- a/lib/redmine/helpers/calendar.rb
+++ b/lib/redmine/helpers/calendar.rb
@@ -68,6 +68,8 @@ module Redmine
case Setting.start_of_week.to_i
when 1
@first_dow ||= (1 - 1)%7 + 1
+ when 6
+ @first_dow ||= (6 - 1)%7 + 1
when 7
@first_dow ||= (7 - 1)%7 + 1
else