From be1c4031124784fc3acbeb57d121d91673ec241c Mon Sep 17 00:00:00 2001 From: Bauke Date: Thu, 8 Jun 2023 13:42:38 +0200 Subject: [PATCH] Update deprecated function. --- source/utilities.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utilities.rs b/source/utilities.rs index e9e4288..9b32c95 100644 --- a/source/utilities.rs +++ b/source/utilities.rs @@ -65,5 +65,5 @@ pub fn get_env_var(key: &str) -> Result { /// Create a [`NaiveDate`] for today. pub fn today() -> NaiveDate { - Utc::now().date().naive_utc() + Utc::now().date_naive() }