hive-sh4re: delete now_unix(), the migration's last call sites are gone

This commit is contained in:
damocles 2026-08-02 02:04:00 +02:00 committed by mara
commit 9f5ce4d941
3 changed files with 10 additions and 13 deletions

View file

@ -416,7 +416,8 @@ fn maybe_auto_reset(bus: &Bus) {
if last_ended == 0 {
return; // no completed turn yet
}
// Compute idle seconds using the same clock as now_unix (unix epoch, i64).
// Compute idle seconds using the same clock semantics as elsewhere
// in this crate (unix epoch, i64 seconds via `Utc::now().timestamp()`).
let now = std::time::SystemTime::now()
.duration_since(std::time::UNIX_EPOCH)
.map_or(0, |d| d.as_secs());