Why does Date() and Calendar.current.startOfDay(for: Date()) produce different days?
I am trying to store Date
data for user actions and set it to always be at start of the day no matter what time user performed the action i.e. User can perform 30 different actions and all of them are stored under the same Date
.