Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 426ac065 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 22328 into eclair

* changes:
  Fix recurrence parsing for all-day events.
parents 7a1c20ad 1ce2e2e7
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -413,8 +413,12 @@ public static boolean populateComponent(ContentValues values,
        long durationMillis = end.toMillis(false /* use isDst */)
                - start.toMillis(false /* use isDst */);
        long durationSeconds = (durationMillis / 1000);
        if (start.allDay && (durationSeconds % 86400) == 0) {
            return "P" + (durationSeconds / 86400) + "D"; // Server wants this instead of P86400S
        } else {
            return "P" + durationSeconds + "S";
        }
    }

    private static String flattenProperties(ICalendar.Component component,
                                            String name) {