- chargingSchedule.startSchedule = new Date(chargingSchedule.startSchedule!);
- }
- chargingSchedule.startSchedule.setFullYear(
- currentDate.getFullYear(),
- currentDate.getMonth(),
- currentDate.getDate(),
- );
- // Check if the start of the schedule is yesterday
- if (isAfter(chargingSchedule.startSchedule, currentDate)) {