Skip to content

Commit

Permalink
Make Timezone dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmielchen committed Mar 11, 2023
1 parent 45c2efe commit d06c13f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fun Timetable.getCalender() : Calendar
name = lesson.subjects.longNames[0]
} catch (_ : Exception) { }
val event = VEvent(
DateTime(Date.from(lesson.startTime.atDate(lesson.date).atZone(ZoneId.of("UTC")).toInstant())),
DateTime(Date.from(lesson.endTime.atDate(lesson.date).atZone(ZoneId.of("UTC")).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
Expand Down

0 comments on commit d06c13f

Please sign in to comment.