refactor: replace unmaintained chrono with time (RUSTSEC-2026-0543)

Adds a timeutil module (unix_now, is_valid_unix, RFC 3339 format/parse) and moves
ClickHouse event timestamps to time::serde::rfc3339. cargo deny is green again.
This commit is contained in:
Loki 2026-11-21 18:25:22 +01:00
parent f25dc3558a
commit e2adf8601c
Signed by: boba
GPG key ID: 6CDE87BC9A778D97
19 changed files with 74 additions and 128 deletions

View file

@ -37,7 +37,7 @@ pub async fn add_blacklist(
}
let target = ip.to_string();
let created_at_unix = chrono::Utc::now().timestamp();
let created_at_unix = crate::timeutil::unix_now();
let metadata = super::common::BlacklistMetadata {
created_at_unix,
expires_at_unix: created_at_unix + duration_secs as i64,