mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 New template functions ISOYear
, ISOMonth
and ISOWeekDate
https://github.com/siyuan-note/siyuan/issues/15679
This commit is contained in:
parent
029a6bd78d
commit
ca7e4ef503
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue