Skip to content

Commit 011c5a6

Browse files
committed
fix: add required DTSTAMP property to VTODO components
RFC 5545 requires DTSTAMP for all VTODO and VEVENT components: > The following are REQUIRED, but MUST NOT occur more than once. > dtstamp / uid Without DTSTAMP, strict CalDAV servers may reject the VTODO or clients may have trouble parsing it. Sets DTSTAMP to current UTC time when generating iCalendar data.
1 parent 80fc71d commit 011c5a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/Objects/Item.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,6 +1192,7 @@ public class Objects.Item : Objects.BaseObject {
11921192
ICal.Component ical = new ICal.Component.vtodo ();
11931193

11941194
ical.set_uid (id);
1195+
ical.set_dtstamp (new ICal.Time.current_with_zone (ICal.Timezone.get_utc_timezone ()));
11951196
ical.set_summary (content);
11961197
ical.set_description (description);
11971198

0 commit comments

Comments
 (0)