Skip to content

Commit

Permalink
Merge branch 'develop' into 549-relative-observation-with-repeat-events
Browse files Browse the repository at this point in the history
  • Loading branch information
janoliver20 authored Dec 11, 2024
2 parents d8c63ef + 85e3e14 commit ac1968c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public Optional<String> getICalendarString(Long studyId) {
iCalEvent.addCategories("General");
iCalEvent.setSummary("Study: " + study.title());
iCalEvent.setDateStart(Date.from(study.plannedStartDate().atStartOfDay(TimeZone.getDefault().toZoneId()).toInstant()), false);
iCalEvent.setDateEnd(Date.from(study.endDate().atStartOfDay(TimeZone.getDefault().toZoneId()).toInstant()), false);
iCalEvent.setDateEnd(Date.from(study.endDate().atTime(23, 59).atZone(TimeZone.getDefault().toZoneId()).toInstant()), true);
ical.addEvent(iCalEvent);

final Instant start = shiftStartIfObservationAlreadyEnded(
Expand Down

0 comments on commit ac1968c

Please sign in to comment.