Caldav: Fix 555 another broken Israeli timezone

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2214 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2014-01-21 23:10:57 +00:00
parent 465900e7ae
commit 06741a59c9
1 changed files with 6 additions and 0 deletions

View File

@ -332,6 +332,12 @@ public class VCalendar extends VObject {
if (rrule != null && rrule.getValues().size() == 3 && "BYDAY=-2SU".equals(rrule.getValues().get(1))) {
rrule.getValues().set(1, "BYDAY=4SU");
}
// Fix 555 another broken Israeli timezone
if (rrule != null && rrule.getValues().size() == 4 && "BYDAY=FR".equals(rrule.getValues().get(1))
&& "BYMONTHDAY=23,24,25,26,27,28,29".equals(rrule.getValues().get(2))) {
rrule.getValues().set(1, "BYDAY=-1FR");
rrule.getValues().remove(2);
}
}
}
}