Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.

Commit 5251050

Browse files
fix: Add Support For Hours, Minutes and Secons in Dates (#1827)
1 parent f375519 commit 5251050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/CourseDates.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ fileprivate extension Date {
462462
}
463463

464464
calender.timeZone = timeZone
465-
let components = calender.dateComponents([.year, .month, .day], from: self)
465+
let components = calender.dateComponents([.year, .month, .day, .hour, .minute, .second], from: self)
466466

467467
return calender.date(from: components) ?? self
468468
}

0 commit comments

Comments
 (0)