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.
2 parents aa44546 + cf3320c commit 2254a13Copy full SHA for 2254a13
Sources/Foundation/JSONEncoder.swift
@@ -448,8 +448,6 @@ extension JSONEncoderImpl: _SpecialTreatmentEncoder {
448
return .number(decimal.description)
449
case let object as [String: Encodable]: // this emits a warning, but it works perfectly
450
return try self.wrapObject(object, for: nil)
451
- case let date as Date:
452
- return try self.wrapDate(date, for: nil)
453
default:
454
try encodable.encode(to: self)
455
return self.value ?? .object([:])
0 commit comments