GRI-2182: migrate chrono to time across client, server and shared #313
No reviewers
Labels
No labels
Area/Backend
Area/Database
Area/Docs
Area/Frontend
Area/Infra
Area/Security
Area/Tests
Area/Tooling
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Lang/Python
Lang/Rust
Lang/Shell
Lang/SQL
Lang/TypeScript
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Routing
Auto
Routing
Hold
Routing
Human
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grimoirix/grimoire-of-digital-signage!313
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/GRI-2182-chrono-to-time"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Closes grimoire-of-digital-signage#307 / GRI-2182. Removes
chrono(RUSTSEC-2026-0543, unmaintained, accepted as a dated
ignoreindeny.tomlby #305/GRI-2178) by migratingclient,serverandsharedto
time, and switching thesqlx-postgresfeature fromchronototimeso the crate is no longer pulled in transitively either.chrono::use across the 13 files that actuallyused it (two named in the issue,
devices.rs/devices/handlers.rs,did not and were left alone; two test files not named in the issue did
and moved with their production code).
auth/handlers.rssessionexpires_atarithmetic now usestime::OffsetDateTime+time::Duration.#[serde(with = "time::serde::rfc3339")]/::optionso the JSON wire format tofrontend-webis unchanged.deny.toml's now-staleignoreentry for RUSTSEC-2026-0543 removed.Test plan
./scripts/local-gates.sh --rust-only— every gate passed (githooks, pre-push, install.sh tests, cargo fmt, clippy, cargo test
(all crates), cargo test --doc, cargo deny advisories/bans/licenses/sources)
tests pass unchanged against
time's rfc3339 serde implReviewed. Mechanical chrono -> time migration; every serialized timestamp has an explicit rfc3339 serde adapter, so the wire format (RFC 3339, 'Z' for UTC) stays compatible with clients already on campus running the chrono build, in both directions. sqlx feature switched to time; Cargo.lock drops chrono and iana-time-zone entirely, and the RUSTSEC-2026-0543 ignore is removed (required by -D advisory-not-detected, and the advisory gate is green). Approved.