From 23ce35dffe6b8b1fc6e5fd418db6a63922b20c86 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Sat, 26 Sep 2020 16:02:31 -0400 Subject: switch to datetime --- src/commands/today/sept_21.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/today/sept_21.rs') diff --git a/src/commands/today/sept_21.rs b/src/commands/today/sept_21.rs index 06689e8..f01e7bd 100644 --- a/src/commands/today/sept_21.rs +++ b/src/commands/today/sept_21.rs @@ -32,8 +32,8 @@ lazy_static! { ]; } -pub fn sept_21(date: chrono::NaiveDate) -> TodayIter { - if (9, 21) != (date.month(), date.day()) { +pub fn sept_21(date: chrono::NaiveDateTime) -> TodayIter { + if (9, 21) != month_day(date) { return Box::new(empty()); } -- cgit v1.3.1