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 (#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
shafqat-muneer authored Apr 22, 2024
1 parent f375519 commit 5251050
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 5251050

Please sign in to comment.