diff --git a/src/util.rs b/src/util.rs index 81e1e47..a8c6b18 100644 --- a/src/util.rs +++ b/src/util.rs @@ -1,5 +1,7 @@ pub fn time_to_jiff(t: time::OffsetDateTime) -> jiff::Zoned { - let tz = jiff::tz::TimeZone::fixed(jiff::tz::offset(t.offset().whole_hours())); + let tz = jiff::tz::TimeZone::fixed( + jiff::tz::Offset::from_seconds(t.offset().whole_seconds()).unwrap(), + ); jiff::Timestamp::new(t.unix_timestamp(), 0) .unwrap()