🎨 New template functions ISOYear, ISOMonth and ISOWeekDate https://github.com/siyuan-note/siyuan/issues/15679

This commit is contained in:
Daniel 2025-08-28 09:21:18 +08:00
parent 029a6bd78d
commit ca7e4ef503
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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