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
4 changes: 2 additions & 2 deletions Sources/FoundationEssentials/Date.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?) {
Expand Down Expand Up @@ -446,7 +446,7 @@ extension Date : _CustomPlaygroundQuickLookable {
#endif // FOUNDATION_FRAMEWORK

extension Date {
// 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.
// 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.
package static let validCalendarRange = Date(timeIntervalSinceReferenceDate: TimeInterval(-211845067200.0))...Date(timeIntervalSinceReferenceDate: TimeInterval(15927175497600.0))

// aka __CFCalendarValidateAndCapTimeRange
Expand Down