From d0049fc4150b1e1e15408b4d118df7100584b328 Mon Sep 17 00:00:00 2001 From: koenichiwa <47349524+koenichiwa@users.noreply.github.com> Date: Wed, 24 Feb 2021 14:29:43 +0100 Subject: [PATCH] Fix mistake in Schedule::includes (#81) --- src/schedule.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schedule.rs b/src/schedule.rs index 12578d6..54f6e22 100644 --- a/src/schedule.rs +++ b/src/schedule.rs @@ -244,7 +244,7 @@ impl Schedule { self.fields.days_of_month.includes(date_time.day() as Ordinal) && self.fields.hours.includes(date_time.hour() as Ordinal) && self.fields.minutes.includes(date_time.minute() as Ordinal) && - self.fields.minutes.includes(date_time.second() as Ordinal) + self.fields.seconds.includes(date_time.second() as Ordinal) } /// Returns a [TimeUnitSpec](trait.TimeUnitSpec.html) describing the years included