From 5b96deb2d30732595544e45855e15f61415e1c27 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Sun, 11 Sep 2022 14:11:05 +0200 Subject: Correct report timeframes --- src/ui/report.rs | 6 +++--- src/ui/window.rs | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ui/report.rs b/src/ui/report.rs index c91806d..c7c1a75 100644 --- a/src/ui/report.rs +++ b/src/ui/report.rs @@ -190,11 +190,11 @@ impl FurReport { let days_ago = today.day() - 1; range_start_date = today - Duration::days(days_ago.into()); } else if active_range == "30_days_item" { - range_start_date = today - Duration::days(30); + range_start_date = today - Duration::days(29); } else if active_range == "six_months_item" { - range_start_date = today - Duration::days(180); + range_start_date = today - Duration::days(179); } else if active_range == "year_item" { - range_start_date = today - Duration::days(365); + range_start_date = today - Duration::days(364); } else { let input_start_date = NaiveDate::parse_from_str(&imp.start_date_entry.text(), "%m/%d/%Y"); diff --git a/src/ui/window.rs b/src/ui/window.rs index 7163195..bed1931 100755 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -926,3 +926,4 @@ impl Default for FurtheranceWindow { .unwrap() } } + -- cgit 1.4.1