Skip to content

Commit

Permalink
fix: consistently begin weeks on mondays (resolve #623)
Browse files Browse the repository at this point in the history
  • Loading branch information
muety committed Mar 17, 2024
1 parent 997b932 commit ec45c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/date.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func BeginOfToday(tz *time.Location) time.Time {
}

func BeginOfThisWeek(tz *time.Location) time.Time {
return datetime.BeginOfWeek(time.Now().In(tz))
return datetime.BeginOfWeek(time.Now().In(tz), time.Monday)
}

func BeginOfThisMonth(tz *time.Location) time.Time {
Expand Down

0 comments on commit ec45c33

Please sign in to comment.