malcommac / SwiftDate

🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
MIT License
7.61k stars 767 forks source link

Fixing issue #715 - Slightly different results for dateAt(.endOfDay) and dateAtEndOf(.day) #782

Open spneshaei opened 3 years ago

spneshaei commented 3 years ago

Fixing issue #715 - Now dateAtEndOf(_: Calendar.Component) will use dateAt(_: DateRelatedType) when .day or .month are provided to avoid equality incostistency.