From 2bc182d9681e854d46c6197e2d629686392a77af Mon Sep 17 00:00:00 2001 From: Max Mielchen Date: Sun, 12 Mar 2023 15:57:22 +0100 Subject: [PATCH] try to solve (Try: 006) --- .../java/com/velocitypackage/untiscalendar/app/iCalModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/velocitypackage/untiscalendar/app/iCalModel.kt b/app/src/main/java/com/velocitypackage/untiscalendar/app/iCalModel.kt index b4ba795..5099a3a 100644 --- a/app/src/main/java/com/velocitypackage/untiscalendar/app/iCalModel.kt +++ b/app/src/main/java/com/velocitypackage/untiscalendar/app/iCalModel.kt @@ -30,8 +30,8 @@ fun Timetable.getCalender() : Calendar name = lesson.subjects.longNames[0] } catch (_ : Exception) { } val event = VEvent( - Date(Date.from(lesson.startTime.atDate(lesson.date).atZone(ZoneId.of(Config.timezone)).toInstant())), - Date(Date.from(lesson.endTime.atDate(lesson.date).atZone(ZoneId.of(Config.timezone)).toInstant())), + DateTime(Date.from(lesson.startTime.atDate(lesson.date).atZone(ZoneId.of(Config.timezone)).toInstant())), + DateTime(Date.from(lesson.endTime.atDate(lesson.date).atZone(ZoneId.of(Config.timezone)).toInstant())), name ) try