diff --git a/lib/service/date_service.dart b/lib/service/date_service.dart index be45fe6..257afc1 100644 --- a/lib/service/date_service.dart +++ b/lib/service/date_service.dart @@ -48,7 +48,8 @@ List createTZDateTimes( selectedDays.map((day) => weekDays[day]); for (int i = 0; i < trainingTime; i++) { final DateTime date = DateTime.now().add(Duration(days: i)); - if (selectedDaysInt.contains(date.weekday)) { + if (selectedDaysInt.contains(date.weekday) && + date.isAfter(DateTime.now())) { tzDateTimes.add(TZDateTime.local(date.year, date.month, date.day, selectedHours, selectedMinutes, 0, 0, 0)); }