Fixed warning by replacing `kCFCalendarUnitDay` with `NSCalendarUnitDay`.