We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9acb166 commit 09b7a58Copy full SHA for 09b7a58
Tests/FoundationEssentialsTests/JSONEncoderTests.swift
@@ -2896,6 +2896,11 @@ extension JSONEncoderTests {
2896
let formatter = DateFormatter()
2897
formatter.dateStyle = .full
2898
formatter.timeStyle = .full
2899
+ var cal = Calendar(identifier: .gregorian)
2900
+ cal.timeZone = .gmt
2901
+ formatter.calendar = cal
2902
+ formatter.locale = Locale(identifier: "en_US")
2903
+ formatter.timeZone = .gmt
2904
2905
let timestamp = Date(timeIntervalSince1970: 1000)
2906
let expectedJSON = "\"\(formatter.string(from: timestamp))\"".data(using: .utf8)!
0 commit comments