Skip to content

Commit

Permalink
[SyncInsee] Minimum date for v3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldouziech committed Mar 29, 2024
1 parent f7a52f2 commit ce68d4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/update/action/sync_insee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

0 comments on commit ce68d4b

Please sign in to comment.