fix: wrong month display in calendars

This commit is contained in:
2026-01-04 00:32:20 +01:00
parent 4ef568301b
commit dbef8a9b4b
2 changed files with 2 additions and 2 deletions

View File

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