diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2022-09-11 14:11:05 +0200 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2022-09-11 14:11:05 +0200 |
commit | 5b96deb2d30732595544e45855e15f61415e1c27 (patch) | |
tree | 9b62ff2d9c9303bb02f2a73bdf91cbd0e5fd1bd3 /src/ui/report.rs | |
parent | 3625cd0ef34b4d888c5c455f73fa9cf34655947f (diff) | |
download | Furtherance-5b96deb2d30732595544e45855e15f61415e1c27.tar.zst |
Correct report timeframes
Diffstat (limited to 'src/ui/report.rs')
-rw-r--r-- | src/ui/report.rs | 6 |
1 files changed, 3 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"); |