fix: update attendance month handling to use lastMonths and correct month indexing

This commit is contained in:
2026-01-06 20:58:14 +01:00
parent 870c36a15d
commit 356c1b3295
4 changed files with 28 additions and 11 deletions

View File

@@ -82,7 +82,7 @@ onMounted(async () => {
loading.value = true
const currentDate = new Date()
try {
const response = await getData(currentDate.getFullYear(), currentDate.getMonth())
const response = await getData(currentDate.getFullYear(), currentDate.getMonth() + 1)
input.value = response
attendanceStore.loadFromResponse(response)
} catch (err) {