fix: wrong month display in calendars

This commit is contained in:
2026-01-04 00:32:20 +01:00
parent 7b1f039943
commit 51496b1e05
2 changed files with 2 additions and 2 deletions

View File

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