From 26aef0a90895fc6311df13482b70d833660469ad Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Tue, 14 Oct 2025 14:01:35 -0400 Subject: [PATCH] Use _time.head when bridging to NSDate. --- Sources/FoundationEssentials/Date.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FoundationEssentials/Date.swift b/Sources/FoundationEssentials/Date.swift index 453b7853f..5811dacd8 100644 --- a/Sources/FoundationEssentials/Date.swift +++ b/Sources/FoundationEssentials/Date.swift @@ -395,7 +395,7 @@ extension Date : ReferenceConvertible, _ObjectiveCBridgeable { @_semantics("convertToObjectiveC") public func _bridgeToObjectiveC() -> NSDate { - return NSDate(timeIntervalSinceReferenceDate: _time) + return NSDate(timeIntervalSinceReferenceDate: _time.head) } public static func _forceBridgeFromObjectiveC(_ x: NSDate, result: inout Date?) {