fix: calendar weekend highlighting

Screw timezones
This commit is contained in:
2 * r + 2 * t 2026-04-23 03:00:43 +10:00
parent 1600c889ac
commit 074dad09f7

View file

@ -138,7 +138,7 @@ CustomMouseArea {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
text: grid.locale.toString(dayItem.model.day) text: grid.locale.toString(dayItem.model.day)
color: { color: {
const dayOfWeek = dayItem.model.date.getUTCDay(); const dayOfWeek = dayItem.model.date.getDay();
if (dayOfWeek === 0 || dayOfWeek === 6) if (dayOfWeek === 0 || dayOfWeek === 6)
return Colours.palette.m3secondary; return Colours.palette.m3secondary;