Skip to content

Commit e4ef061

Browse files
authored
Merge pull request #1549 from swiftlang/automerge/merge-main-2025-10-15_09-05
Merge `main` into `future`
2 parents a601cb9 + cd6ebe2 commit e4ef061

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/FoundationEssentials/Date.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ extension Date : ReferenceConvertible, _ObjectiveCBridgeable {
395395

396396
@_semantics("convertToObjectiveC")
397397
public func _bridgeToObjectiveC() -> NSDate {
398-
return NSDate(timeIntervalSinceReferenceDate: _time)
398+
return NSDate(timeIntervalSinceReferenceDate: _time.head)
399399
}
400400

401401
public static func _forceBridgeFromObjectiveC(_ x: NSDate, result: inout Date?) {
@@ -446,7 +446,7 @@ extension Date : _CustomPlaygroundQuickLookable {
446446
#endif // FOUNDATION_FRAMEWORK
447447

448448
extension Date {
449-
// Julian day 0 (-4713-01-01 12:00:00 +0000) in CFAbsoluteTime to 506713-02-07 00:00:00 +0000, smaller than the max time ICU supported.
449+
// Julian day 0 (-4712-01-01 12:00:00 +0000) in CFAbsoluteTime to 506713-02-07 00:00:00 +0000, smaller than the max time ICU supported.
450450
package static let validCalendarRange = Date(timeIntervalSinceReferenceDate: TimeInterval(-211845067200.0))...Date(timeIntervalSinceReferenceDate: TimeInterval(15927175497600.0))
451451

452452
// aka __CFCalendarValidateAndCapTimeRange

0 commit comments

Comments
 (0)