Skip to content

Commit

Permalink
Change logic for Shortcut lastWeek for selected 7 days (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
UriyDevyataev authored Mar 13, 2024
1 parent 4bd9b5e commit debd688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Models/Shortcut.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public extension FastisShortcut where Value == FastisRange {
static var lastWeek: FastisShortcut {
FastisShortcut(name: "Last week") { calendar in
let now = Date()
let weekAgo = calendar.date(byAdding: .day, value: -7, to: now)!
let weekAgo = calendar.date(byAdding: .day, value: -6, to: now)!
return FastisRange(from: weekAgo.startOfDay(in: calendar), to: now.endOfDay(in: calendar))
}
}
Expand Down

0 comments on commit debd688

Please sign in to comment.