From dbef8a9b4b56a9ec20baa1d30bfdc26462105840 Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Sun, 4 Jan 2026 00:32:20 +0100 Subject: [PATCH] fix: wrong month display in calendars --- app/components/Home/TopScreen/Calendar.vue | 2 +- app/components/Settings/TopScreen/Calendar.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Home/TopScreen/Calendar.vue b/app/components/Home/TopScreen/Calendar.vue index fdd6519..68d6cb5 100644 --- a/app/components/Home/TopScreen/Calendar.vue +++ b/app/components/Home/TopScreen/Calendar.vue @@ -89,7 +89,7 @@ onRender((ctx) => { ctx.font = "10px NDS10"; ctx.letterSpacing = "2px"; - const timeText = `${month}/${year}`; + const timeText = `${(month + 1).toString().padStart(2, "0")}/${year}`; const { actualBoundingBoxRight: width } = ctx.measureText(timeText); ctx.fillText( diff --git a/app/components/Settings/TopScreen/Calendar.vue b/app/components/Settings/TopScreen/Calendar.vue index 21f8ac7..29035f3 100644 --- a/app/components/Settings/TopScreen/Calendar.vue +++ b/app/components/Settings/TopScreen/Calendar.vue @@ -79,7 +79,7 @@ onRender((ctx) => { ctx.font = "10px NDS10"; ctx.letterSpacing = "2px"; - const timeText = `${month}/${year}`; + const timeText = `${(month + 1).toString().padStart(2, "0")}/${year}`; const { actualBoundingBoxRight: width } = ctx.measureText(timeText); ctx.fillText(