File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Sources/BSON/Codable/Decoding Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ public struct BSONDecoderSettings {
158158 /// If `true`, allows decoding ObjectIds from Strings if they're formatted as a 24-character hexString
159159 public var decodeObjectIdFromString : Bool = false
160160
161- /// If `true`, allows decoding ObjectIds from Strings if they're formatted as a 24-character hexString
161+ /// If `true`, allows decoding Date from a Double (TimeInterval)
162162 public var decodeDateFromTimestamp : Bool = true
163163
164164 /// A strategy that is applied when encountering a request to decode a `Float`
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class BSONEncoderTests: XCTestCase {
9797 }
9898
9999 let container = try BSONDecoder ( ) . decode ( DateContainer . self, from: document)
100- XCTAssertEqual ( date, container. date)
100+ XCTAssertEqual ( date. timeIntervalSince1970 , container. date. timeIntervalSince1970 )
101101 }
102102
103103 @available ( OSX 10 . 12 , * )
You can’t perform that action at this time.
0 commit comments