about summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorRicky Kresslein <rk@lakoliu.com>2022-09-11 14:11:05 +0200
committerRicky Kresslein <rk@lakoliu.com>2022-09-11 14:11:05 +0200
commit5b96deb2d30732595544e45855e15f61415e1c27 (patch)
tree9b62ff2d9c9303bb02f2a73bdf91cbd0e5fd1bd3 /src/ui
parent3625cd0ef34b4d888c5c455f73fa9cf34655947f (diff)
downloadFurtherance-5b96deb2d30732595544e45855e15f61415e1c27.tar.zst
Correct report timeframes
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/report.rs6
-rwxr-xr-xsrc/ui/window.rs1
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()
     }
 }
+