Skip to content

Commit 5b3e97c

Browse files
committed
tweak ical
1 parent 90da11b commit 5b3e97c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

errands/lib/sync/providers/caldav.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,12 @@ def __update_remote_task(self, calendar: Calendar, task: TaskData) -> None:
406406
del todo.icalendar_component["dtstart"]
407407
if task.created_at:
408408
todo.icalendar_component["dtstamp"] = task.created_at
409+
else:
410+
del todo.icalendar_component["dtstamp"]
409411
if task.changed_at:
410412
todo.icalendar_component["last-modified"] = task.changed_at
413+
else:
414+
del todo.icalendar_component["last-modified"]
411415
todo.icalendar_component["summary"] = task.text
412416
todo.icalendar_component["percent-complete"] = int(task.percent_complete)
413417
todo.icalendar_component["description"] = task.notes

0 commit comments

Comments
 (0)