diff --git a/src/device.rs b/src/device.rs --- a/src/device.rs +++ b/src/device.rs @@ -59,10 +59,6 @@ pub struct Timestamp(pub jiff::Timestamp); impl Timestamp { - pub fn from_seconds(stamp: i64) -> Result { - jiff::Timestamp::from_second(stamp).map(Self) - } - pub fn from_microseconds(stamp: i64) -> Result { jiff::Timestamp::from_microsecond(stamp).map(Self) } diff --git a/src/views/monitoring.rs b/src/views/monitoring.rs --- a/src/views/monitoring.rs +++ b/src/views/monitoring.rs @@ -140,7 +140,7 @@ } StrikerResponse::Update(Update::Warning { timestamp, level }) => { entity.with_related::(( - Timestamp::from_seconds(timestamp)?, + Timestamp::from_microseconds(timestamp)?, StormLevel(level), )); }