forgot some dayjs / luxon refactoring, fix #280

This commit is contained in:
lesion
2023-06-17 09:28:54 +02:00
parent dff5a798e5
commit c948da2948

View File

@@ -258,7 +258,7 @@ module.exports = {
}
} else {
cursor = date.startOf('month')
cursor = cursor.add(cursor.day() <= date.day() ? n - 1 : n, 'week')
// cursor = cursor.add(cursor.day <= date.day ? n - 1 : n, 'week')
cursor = cursor.plus({ days: cursor.weekday <= date.weekday ? (n-1) * 7 : n * 7})
cursor = cursor.set({ weekday })
}