We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ca5b37 commit c994a35Copy full SHA for c994a35
DontForget/Sources/Presentations/Application/Common/Constants.swift
@@ -20,6 +20,6 @@ struct Constants {
20
let calendar = Calendar.current
21
let startOfCurrentDate = calendar.startOfDay(for: Date())
22
let startOfTargetDate = calendar.startOfDay(for: from)
23
- return calendar.dateComponents([.day], from: startOfCurrentDate, to: startOfTargetDate).day!
+ return calendar.dateComponents([.day], from: startOfCurrentDate, to: startOfTargetDate).day! * -1
24
}
25
0 commit comments