From 12abd19c4c03533445717489d22b3e09b1f0a897 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Mon, 28 Nov 2022 13:55:03 -0500 Subject: chrono: use hms_opt --- src/commands/today/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/today/mod.rs') 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::() .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) }) }); -- cgit v1.3.1