Loading core/java/android/pim/RecurrenceSet.java +6 −2 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
core/java/android/pim/RecurrenceSet.java +6 −2 Original line number Diff line number Diff line Loading @@ -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) { Loading