From 4d51ee8a645fd1fd8b4116df25299139af07d518 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 13 Jun 2022 09:09:27 +1000 Subject: [PATCH] Fix number of days in a (standard) year https://forums.ankiweb.net/t/prop-ivl-faulty/20665 --- rslib/src/scheduler/timespan.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/scheduler/timespan.rs b/rslib/src/scheduler/timespan.rs index 84989875d..26bc64d6d 100644 --- a/rslib/src/scheduler/timespan.rs +++ b/rslib/src/scheduler/timespan.rs @@ -58,7 +58,7 @@ const MINUTE: f32 = 60.0 * SECOND; const HOUR: f32 = 60.0 * MINUTE; const DAY: f32 = 24.0 * HOUR; const MONTH: f32 = 30.0 * DAY; -const YEAR: f32 = 12.0 * MONTH; +const YEAR: f32 = 365.0 * DAY; #[derive(Clone, Copy)] pub(crate) enum TimespanUnit {