mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
Caldav: workaround for 3569922: quick fix for broken Israeli Timezone issue
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2039 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
f397d73a6a
commit
12f95e976c
@ -323,6 +323,15 @@ public class VCalendar extends VObject {
|
||||
vTimezone.vObjects.add(standard);
|
||||
vTimezone.vObjects.add(daylight);
|
||||
}
|
||||
// fix 3569922: quick workaround for broken Israeli Timezone issue
|
||||
if (vTimezone != null && vTimezone.vObjects != null) {
|
||||
for (VObject vObject:vTimezone.vObjects) {
|
||||
VProperty rrule = vObject.getProperty("RRULE");
|
||||
if (rrule != null && rrule.getValues().size() == 3 && "BYDAY=-2SU".equals(rrule.getValues().get(1))) {
|
||||
rrule.getValues().set(1, "BYDAY=4SU");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void fixTzid(VProperty property) {
|
||||
|
Loading…
Reference in New Issue
Block a user