Skip to content

Commit

Permalink
Meeting times sent in the invitation mails .ics are wrong (marked as …
Browse files Browse the repository at this point in the history
…UTC) #13

* set the proper/current time zone of the wiki in the vCalendar, instead of using the UTC
  • Loading branch information
acotiuga committed Nov 1, 2018
1 parent 32002a4 commit 11d6ed7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ui/src/main/resources/Meeting/Code/Macros.xml
Expand Up @@ -101,7 +101,7 @@
#set($discard = $calendar.add(12, $util.parseInt($meetingDoc.getValue('duration'))))
#set($endDate = $calendar.getTime())

#set($dateFormat = "yyyyMMdd'T'HHmmss'Z'")
#set($dateFormat = "yyyyMMdd'T'HHmmss")

#set($discard = $dates.put('smodDate', $!{datetool.format($dateFormat, $meetingDoc.date)}))
#set($discard = $dates.put('sstartDate', $!{datetool.format($dateFormat, $startDate)}))
Expand All @@ -126,15 +126,16 @@
#macro (getVCalendarContent $meetingDoc $vCalendar)
#set($meeting = {})
#getMeetingInfos($meetingDoc, $meeting)
#set($timezoneId = $datetool.timeZone.ID)
#set($vCalendar = "
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID: Meeting
VERSION:2.0
BEGIN:VEVENT
DTSTAMP:$!{meeting.dates.smodDate}
DTSTART:$!{meeting.dates.sstartDate}
DTEND:$!{meeting.dates.sendDate}
DTSTAMP;TZID=$timezoneId:$!{meeting.dates.smodDate}
DTSTART;TZID=$timezoneId:$!{meeting.dates.sstartDate}
DTEND;TZID=$timezoneId:$!{meeting.dates.sendDate}
SUMMARY:$!{meetingDoc.title}
UID:$!{meetingDoc.id}
$!{meeting.participants.icsParticipants}
Expand Down

0 comments on commit 11d6ed7

Please sign in to comment.