diff options
author | Joris | 2022-12-18 15:03:51 +0100 |
---|---|---|
committer | Joris | 2022-12-18 15:03:51 +0100 |
commit | a6fd0110b65ec352603d69b9c4ccf3532689cd32 (patch) | |
tree | f6f8694a40ce620705525f1aca67edeba3074c0b /src/cli | |
parent | 241089e3a1427c2968b296cc6c4112e45b78c278 (diff) |
Upgrade dependencies
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 6ce50af..b952a75 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -5,7 +5,7 @@ use rusqlite::Connection; use crate::{db, model::event}; pub fn today(conn: &Connection) -> Result<String> { - let today = Local::today().naive_local(); + let today = Local::now().date_naive(); let mut events = db::events::list_non_recurring_between(conn, today, today)?; let recurring_events = db::events::list_recurring(conn)?; let repetitions = event::repetitions_between(&recurring_events, today, today); |