Closed borisovodov closed 2 months ago
#17 294.3 /build/Sources/np/Models/Newspaper.swift:164:62: error: value of type 'Date' has no member 'ISO8601Format' #17 294.3 publicationStartForEditString = publicationStart.ISO8601Format() #17 294.3 ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ #17 294.3 /build/Sources/np/Models/Newspaper.swift:182:190: error: value of type 'Date' has no member 'ISO8601Format' #17 294.3 return try await NewspaperPageDTO(title: self.title, number: self.number, secondaryNumber: self.secondaryNumber, date: dateFormatter.string(from: self.date), dateForEdit: self.date.ISO8601Format(), pages: self.pages, circulation: self.circulation, publicationStart: publicationStartString, publicationStartForEdit: publicationStartForEditString, website: self.website, ISSN: self.ISSN, photo: self.photoURL, thumbnail: self.thumbnailURL, URL: self.URL, color: self.color.toDTO, publicationType: self.publicationType.toDTO, frequency: self.frequency?.toDTO, city: self.$city.get(on: database).toDTO(database), language: self.$language.get(on: database).toDTO(database), paperFormat: self.$paperFormat.get(on: database)?.toDTO(database), frequencyTag: self.frequency?.tag(database), costs: costs, senders: senders, tags: tags) #17 294.3 ~~~~~~~~~ ^~~~~~~~~~~~~ #17 294.3 /build/Sources/np/Models/Newspaper.swift:190:51: error: extra argument 'strategy' in call #17 294.3 let date = try Date(form.date, strategy: .iso8601) #17 294.3 ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ #17 294.3 /build/Sources/np/Models/Newspaper.swift:190:51: error: cannot infer contextual base in reference to member 'iso8601' #17 294.3 let date = try Date(form.date, strategy: .iso8601) #17 294.3 ~^~~~~~~ #17 294.3 /build/Sources/np/Models/Newspaper.swift:209:157: error: extra argument 'strategy' in call #17 294.3 if let publicationStartString = form.publicationStart, form.publicationStart != "" { try publicationStart = Date(publicationStartString, strategy: .iso8601) } #17 294.3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ #17 294.3 /build/Sources/np/Models/Newspaper.swift:209:157: error: cannot infer contextual base in reference to member 'iso8601' #17 294.3 if let publicationStartString = form.publicationStart, form.publicationStart != "" { try publicationStart = Date(publicationStartString, strategy: .iso8601) } #17 294.3 ~^~~~~~~ #17 294.3 /build/Sources/np/Models/Newspaper.swift:323:51: error: extra argument 'strategy' in call #17 294.3 let date = try Date(form.date, strategy: .iso8601) #17 294.3 ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ #17 294.3 /build/Sources/np/Models/Newspaper.swift:323:51: error: cannot infer contextual base in reference to member 'iso8601' #17 294.3 let date = try Date(form.date, strategy: .iso8601) #17 294.3 ~^~~~~~~ #17 294.3 /build/Sources/np/Models/Newspaper.swift:343:157: error: extra argument 'strategy' in call #17 294.3 if let publicationStartString = form.publicationStart, form.publicationStart != "" { try publicationStart = Date(publicationStartString, strategy: .iso8601) } #17 294.3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ #17 294.3 /build/Sources/np/Models/Newspaper.swift:343:157: error: cannot infer contextual base in reference to member 'iso8601' #17 294.3 if let publicationStartString = form.publicationStart, form.publicationStart != "" { try publicationStart = Date(publicationStartString, strategy: .iso8601) } #17 294.3 ~^~~~~~~ #17 294.3 error: fatalError #17 ERROR: process "/bin/sh -c swift build -c release --static-swift-stdlib -Xlinker -ljemalloc" did not complete successfully: exit code: 1
logs_27598272576.zip