utilities/record: fix recording list months

Fixes #782
This commit is contained in:
2 * r + 2 * t 2025-10-13 23:43:56 +11:00
parent e399a9d7a3
commit 40f98fb059

View file

@ -92,6 +92,7 @@ ColumnLayout {
if (!matches) if (!matches)
return time; return time;
const date = new Date(...matches.slice(1)); const date = new Date(...matches.slice(1));
date.setMonth(date.getMonth() - 1); // Woe (months start from 0)
return qsTr("Recording at %1").arg(Qt.formatDateTime(date, Qt.locale())); return qsTr("Recording at %1").arg(Qt.formatDateTime(date, Qt.locale()));
} }
color: Colours.palette.m3onSurfaceVariant color: Colours.palette.m3onSurfaceVariant