Skip to content

Commit fd19cc6

Browse files
committed
add Saturday to the First day of the week options
Signed-off-by: Ahmad Haghighi <[email protected]>
1 parent 7cd8659 commit fd19cc6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

asset/assets_vfsdata.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/app/src/Main.elm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ init flags url key =
9696
case d of
9797
"Sunday" ->
9898
Sunday
99+
99100
"Saturday" ->
100101
Saturday
102+
101103
_ ->
102104
Monday
103105
)

ui/app/src/Utils/DateTimePicker/Utils.elm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ listDaysOfMonth time firstDayOfWeek =
5858
Saturday ->
5959
if wd == 6 then
6060
0
61+
6162
else if wd == 7 then
6263
1
64+
6365
else
6466
wd + 1
6567
)
@@ -83,8 +85,10 @@ listDaysOfMonth time firstDayOfWeek =
8385
Saturday ->
8486
if wd == 6 then
8587
7
88+
8689
else if wd == 7 then
8790
1
91+
8892
else
8993
wd + 1
9094
)

0 commit comments

Comments
 (0)