1 parent 49bfcb8 commit c1c6136Copy full SHA for c1c6136
1 file changed
DevLog/Presentation/ViewModel/ProfileViewModel.swift
@@ -368,13 +368,6 @@ private extension ProfileViewModel {
368
return ProfileCompletionMonth(monthStart: monthStart, weeks: weeks)
369
}
370
371
- func startOfMonth(for date: Date, calendar: Calendar) -> Date {
372
- guard let monthInterval = calendar.dateInterval(of: .month, for: date) else {
373
- return calendar.startOfDay(for: date)
374
- }
375
- return monthInterval.start
376
377
-
378
func quarterStart(for date: Date, calendar: Calendar) -> Date? {
379
let month = calendar.component(.month, from: date)
380
let startMonth = ((month - 1) / 3) * 3 + 1
0 commit comments