Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Tests/FoundationEssentialsTests/JSONEncoderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2896,6 +2896,11 @@ extension JSONEncoderTests {
let formatter = DateFormatter()
formatter.dateStyle = .full
formatter.timeStyle = .full
var cal = Calendar(identifier: .gregorian)
cal.timeZone = .gmt
formatter.calendar = cal
formatter.locale = Locale(identifier: "en_US")
formatter.timeZone = .gmt

let timestamp = Date(timeIntervalSince1970: 1000)
let expectedJSON = "\"\(formatter.string(from: timestamp))\"".data(using: .utf8)!
Expand Down