aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/sept_21.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2020-09-26 16:02:31 -0400
committerNathan Perry <np@nathanperry.dev>2020-09-26 16:02:31 -0400
commit23ce35dffe6b8b1fc6e5fd418db6a63922b20c86 (patch)
treeea814e4180030db5ad3571e4d2dfe40d9cab47a0 /src/commands/today/sept_21.rs
parentc12afcf2f06d2d477348952692bf4662ff9ce779 (diff)
switch to datetime
Diffstat (limited to 'src/commands/today/sept_21.rs')
-rw-r--r--src/commands/today/sept_21.rs4
1 files changed, 2 insertions, 2 deletions
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());
}