Skip to content

Commit

Permalink
Bug fixes for date formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuftor committed Nov 19, 2024
1 parent d715447 commit 623481c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extension String {
}
}

private var rfc3339DateFormatter: ISO8601DateFormatter = {
var rfc3339DateFormatter: ISO8601DateFormatter = {
let formatter = ISO8601DateFormatter()
formatter.formatOptions = .withInternetDateTime
formatter.timeZone = TimeZone(abbreviation: "UTC")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,6 @@ class DeviceHelper {
return formatter
}()

private let utcDateTimeFormatter: DateFormatter = {
return String.rfc3339DateFormatter
}()

private var localDateString: String {
return localDateFormatter.string(from: Date())
}
Expand All @@ -335,7 +331,7 @@ class DeviceHelper {
}

private var utcDateTimeString: String {
return utcDateTimeFormatter.string(from: Date())
return rfc3339DateFormatter.string(from: Date())
}

private var minutesSinceInstall: Int {
Expand Down

0 comments on commit 623481c

Please sign in to comment.