Skip to content

Commit a8f4a18

Browse files
authored
Add date (#15)
1 parent 6ec6b60 commit a8f4a18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/Models/DistributionReleaseInfo.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ public final class DistributionReleaseInfo: NSObject, Decodable {
1717
public let iconUrl: String?
1818
public let appName: String
1919
private let createdDate: String
20+
private let currentReleaseDate: String
2021
public let loginRequiredForDownload: Bool
2122

23+
public var currentReleaseCreated: Date? {
24+
let formatter = ISO8601DateFormatter()
25+
return formatter.date(from: currentReleaseDate)
26+
}
27+
2228
public var created: Date? {
2329
let formatter = ISO8601DateFormatter()
2430
return formatter.date(from: createdDate)

0 commit comments

Comments
 (0)