forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to clippy.tomlClear filter

2026-07-12

🐛 fix(time): single UTC clock source, lint-banned alternativesAhmet Kaan Gümüş · 221606f
🐛 fix(time): single UTC clock source, lint-banned alternatives

Timestamp::now() is the sole wall-clock read; today_utc() and
in_days() derive from it. clippy disallowed-methods/-types at deny
ban chrono::Local/Utc::now, SystemTime::now, OffsetDateTime::now_*,
NaiveDateTime, and absolute cookie Expires, so local-time or
client-clock comparisons cannot be reintroduced.

Birth dates accept up to UTC-tomorrow: a client ahead of UTC (up
to UTC+14) legitimately submits a calendar date the server's UTC
day has not reached; the old check rejected it as future.