|
|
@ -128,8 +128,13 @@ public class CaldavConverter {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
remote.setDue(null);
|
|
|
|
remote.setDue(null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
remote.setCompletedAt(
|
|
|
|
if (task.isCompleted()) {
|
|
|
|
task.isCompleted() ? new Completed(new DateTime(task.getCompletionDate())) : null);
|
|
|
|
remote.setCompletedAt(new Completed(new DateTime(task.getCompletionDate())));
|
|
|
|
|
|
|
|
remote.setPercentComplete(100);
|
|
|
|
|
|
|
|
} else if (remote.getCompletedAt() != null) {
|
|
|
|
|
|
|
|
remote.setCompletedAt(null);
|
|
|
|
|
|
|
|
remote.setPercentComplete(0);
|
|
|
|
|
|
|
|
}
|
|
|
|
if (task.isRecurring()) {
|
|
|
|
if (task.isRecurring()) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
String rrule = task.getRecurrenceWithoutFrom().replace("RRULE:", "");
|
|
|
|
String rrule = task.getRecurrenceWithoutFrom().replace("RRULE:", "");
|
|
|
|