diff options
author | Joris | 2024-01-20 18:31:27 +0100 |
---|---|---|
committer | Joris | 2024-01-20 18:31:27 +0100 |
commit | 44a32d874cb0540aede1adcf3e6ef9bd7a928c90 (patch) | |
tree | a1598d0fb8f2bfcdbbd0a660de587a3905262ead /src | |
parent | c2ecfeb9c010e175e6401390b8150b10988093a5 (diff) |
Fix current date to local time instead of UTC time
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/app.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |