tt: switch to monday if the week isn't the current one

closes #44
This commit is contained in:
2025-09-07 16:30:28 +02:00
parent 9183769ff4
commit d3fce38235

View File

@@ -118,7 +118,12 @@ class _HomeTimetableScreen extends State<HomeTimetableScreen> {
setState(() {
this.dates = dates;
setActiveToToday();
if (now.getMonday().getMidnight().millisecondsSinceEpoch ==
timeNow().getMonday().getMidnight().millisecondsSinceEpoch) {
setActiveToToday();
} else {
active = 0;
}
});
}