aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/mod.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2022-11-28 13:55:03 -0500
committerNathan Perry <np@nathanperry.dev>2022-11-28 13:55:03 -0500
commit12abd19c4c03533445717489d22b3e09b1f0a897 (patch)
treeb271d97b25af1f8553092357dd783e08e8e53cb4 /src/commands/today/mod.rs
parent897a499c9cae3a7fa41325e1e3d050b7aa5ef08f (diff)
chrono: use hms_opt
Diffstat (limited to 'src/commands/today/mod.rs')
-rw-r--r--src/commands/today/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/today/mod.rs b/src/commands/today/mod.rs
index 141f1af..0a5eefe 100644
--- a/src/commands/today/mod.rs
+++ b/src/commands/today/mod.rs
@@ -97,7 +97,7 @@ pub fn today(ctx: &mut Context, msg: &Message, _args: Args) -> Result<()> {
.or_else(|_| {
_args.parse::<chrono::NaiveDate>()
.map(|date| {
- let time = chrono::NaiveTime::from_hms(12, 0, 0);
+ let time = chrono::NaiveTime::from_hms_opt(12, 0, 0).unwrap();
date.and_time(time)
})
});