Skip to content

Commit

Permalink
Fix for exdate timezone recalculations
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian1998 authored and karakayasemi committed Apr 13, 2019
1 parent ae8b52a commit d118c08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/app/models/veventModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,9 @@ app.factory('VEvent', function(TimezoneService, FcEvent, SimpleEvent, ICalFactor

const exdateProp = new ICAL.Property('exdate', vevent);
exdateProp.setValues(exdates);
if (angular.isDefined(dtstart.timezone)) {
exdateProp.setParameter('tzid', dtstart.timezone);
if (angular.isDefined(dtstart.zone) && dtstart.zone.tzid !== 'floating' &&
dtstart.zone.tzid !== 'UTC') {
exdateProp.setParameter('tzid', dtstart.zone.tzid);
}

vevent.removeAllProperties('exdate');
Expand Down

0 comments on commit d118c08

Please sign in to comment.