Skip to content

Commit

Permalink
Fix Swift 6 concurency error
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Jul 25, 2024
1 parent aec6a73 commit 849e07d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/CustomDump/Conformances/Foundation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ extension Calendar: CustomDumpReflectable {
"Date(\(Self.formatter.string(from: self)))"
}

private static let formatter: DateFormatter = {
private static var formatter: DateFormatter {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXXX"
formatter.timeZone = TimeZone(secondsFromGMT: 0)!
return formatter
}()
}
}
#endif

Expand Down

0 comments on commit 849e07d

Please sign in to comment.