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

Commit

Permalink
fix: Add Support For Hours, Minutes and Secons in Dates
Browse files Browse the repository at this point in the history
  • Loading branch information
shafqat-muneer committed Apr 19, 2024
1 parent f375519 commit 9f51aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CourseDates.swift
Original file line number Diff line number Diff line change
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

0 comments on commit 9f51aa4

Please sign in to comment.