Skip to content

Commit

Permalink
Fix Swift 6 concurency error (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure authored Aug 2, 2024
1 parent aec6a73 commit 82645ec
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 82645ec

Please sign in to comment.