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

fix: Add Support For Hours, Minutes and Seconds in Dates #1827

Merged
merged 1 commit into from Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/CourseDates.swift
Expand Up @@ -462,7 +462,7 @@ fileprivate extension Date {
}

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

return calender.date(from: components) ?? self
}
Expand Down