1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-09 13:05:56 +00:00

release v12.2.8

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-11-05 22:20:20 +02:00
parent 2fa427e264
commit e2f0224332
20 changed files with 103 additions and 38 deletions

View File

@@ -80,6 +80,7 @@ func BackwardsToMonday(end time.Time) []time.Time {
return dates
}
// GetWeekDate returns the date of the given weekday (monday, tuesday, etc.) of the current week.
func GetWeekDate(now time.Time, weekday, start, end time.Weekday) time.Time {
dates := GetWeekdays(now, start, end)
for _, d := range dates {