From 2d9811b679348d367fa6e773b66e187faca49af6 Mon Sep 17 00:00:00 2001 From: Shafqat Muneer Date: Mon, 22 Apr 2024 12:38:39 +0500 Subject: [PATCH] fix: Add Support For Hours, Minutes and Secons in Dates (#1827) --- Source/CourseDates.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CourseDates.swift b/Source/CourseDates.swift index b0b4dde19..73f994093 100644 --- a/Source/CourseDates.swift +++ b/Source/CourseDates.swift @@ -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 }