From ca7e4ef503d1f53f5fed4724d9993488ff15bf8a Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 28 Aug 2025 09:21:18 +0800 Subject: [PATCH] :art: New template functions `ISOYear`, `ISOMonth` and `ISOWeekDate` https://github.com/siyuan-note/siyuan/issues/15679 --- kernel/util/time.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/util/time.go b/kernel/util/time.go index 933e88084..e767d0295 100644 --- a/kernel/util/time.go +++ b/kernel/util/time.go @@ -82,7 +82,7 @@ func ISOMonth(date time.Time) int { // ISOWeekDate returns the date of the specified day of the week in the ISO 8601 week of date. // day: Monday=1, ..., Sunday=7. -func ISOWeekDate(date time.Time, day int) time.Time { +func ISOWeekDate(day int, date time.Time) time.Time { weekday := int(date.Weekday()) if weekday == 0 { weekday = 7