@@ -308,7 +308,8 @@ public class NKDataFileXML: NSObject {
308308
309309 let propstat = element [ " d:propstat " ] [ 0 ]
310310
311- if let getlastmodified = propstat [ " d:prop " , " d:getlastmodified " ] . text, let date = self . nkCommonInstance. convertDate ( getlastmodified, format: " EEE, dd MMM y HH:mm:ss zzz " ) {
311+ if let getlastmodified = propstat [ " d:prop " , " d:getlastmodified " ] . text,
312+ let date = getlastmodified. parsedDate ( using: " EEE, dd MMM y HH:mm:ss zzz " ) {
312313 file. date = date
313314 }
314315
@@ -600,7 +601,8 @@ public class NKDataFileXML: NSObject {
600601
601602 let propstat = element [ " d:propstat " ] [ 0 ]
602603
603- if let getlastmodified = propstat [ " d:prop " , " d:getlastmodified " ] . text, let date = self . nkCommonInstance. convertDate ( getlastmodified, format: " EEE, dd MMM y HH:mm:ss zzz " ) {
604+ if let getlastmodified = propstat [ " d:prop " , " d:getlastmodified " ] . text,
605+ let date = getlastmodified. parsedDate ( using: " EEE, dd MMM y HH:mm:ss zzz " ) {
604606 file. date = date
605607 }
606608
@@ -678,7 +680,8 @@ public class NKDataFileXML: NSObject {
678680 item. actorType = value
679681 }
680682
681- if let creationDateTime = element [ " d:propstat " , " d:prop " , " oc:creationDateTime " ] . text, let date = self . nkCommonInstance. convertDate ( creationDateTime, format: " EEE, dd MMM y HH:mm:ss zzz " ) {
683+ if let creationDateTime = element [ " d:propstat " , " d:prop " , " oc:creationDateTime " ] . text,
684+ let date = creationDateTime. parsedDate ( using: " EEE, dd MMM y HH:mm:ss zzz " ) {
682685 item. creationDateTime = date
683686 }
684687
0 commit comments