File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import EventKit
33extension EKReminder : Encodable {
44 private enum EncodingKeys : String , CodingKey {
55 case externalId
6+ case lastModified
7+ case creationDate
68 case title
79 case notes
810 case url
@@ -48,6 +50,14 @@ extension EKReminder: Encodable {
4850 if let dueDateComponents = self . dueDateComponents {
4951 try container. encodeIfPresent ( format ( dueDateComponents. date) , forKey: . dueDate)
5052 }
53+
54+ if let lastModifiedDate = self . lastModifiedDate {
55+ try container. encode ( format ( lastModifiedDate) , forKey: . lastModified)
56+ }
57+
58+ if let creationDate = self . creationDate {
59+ try container. encode ( format ( creationDate) , forKey: . creationDate)
60+ }
5161 }
5262
5363 private func format( _ date: Date ? ) -> String ? {
You can’t perform that action at this time.
0 commit comments