From 44a32d874cb0540aede1adcf3e6ef9bd7a928c90 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 20 Jan 2024 18:31:27 +0100 Subject: Fix current date to local time instead of UTC time --- src/gui/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/app.rs b/src/gui/app.rs index e48c93a..aa8359a 100644 --- a/src/gui/app.rs +++ b/src/gui/app.rs @@ -41,7 +41,7 @@ impl App { .build(), ); - let today = chrono::offset::Local::now().naive_utc().date(); + let today = chrono::offset::Local::now().naive_local().date(); // TODO: error handling let start_date = NaiveDate::from_isoywd_opt(today.year(), today.iso_week().week(), Weekday::Mon) -- cgit v1.2.3