Skip to content

Commit

Permalink
modify zone offset
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmielchen committed Mar 11, 2023
1 parent a645c1e commit 6965cd8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,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(Config.timezone)).toInstant())),
DateTime(Date.from(lesson.endTime.atDate(lesson.date).atZone(ZoneId.of(Config.timezone)).toInstant())),
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())),
name
)
try
Expand Down

0 comments on commit 6965cd8

Please sign in to comment.