From ce68d4b61a546a8ede5ab2c6240e2856ef038aed Mon Sep 17 00:00:00 2001 From: LDouziech Date: Fri, 29 Mar 2024 10:50:07 +0100 Subject: [PATCH] [SyncInsee] Minimum date for v3.11 --- src/update/action/sync_insee.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/update/action/sync_insee.rs b/src/update/action/sync_insee.rs index d5eb610..d40ec1c 100644 --- a/src/update/action/sync_insee.rs +++ b/src/update/action/sync_insee.rs @@ -86,5 +86,7 @@ impl Action for SyncInseeAction { } fn get_minimum_timestamp_for_request(timestamp: NaiveDateTime) -> NaiveDateTime { - timestamp.max(Utc::now().naive_local() - Duration::days(31)) + timestamp + .max(Utc::now().naive_local() - Duration::days(31)) + .max(NaiveDateTime::parse_from_str("2024-03-23 00:00:01", "%Y-%m-%d %H:%M:%S").unwrap()) }