diff --git a/src/header/time/mod.rs b/src/header/time/mod.rs index 71694363d4..b4c708042a 100644 --- a/src/header/time/mod.rs +++ b/src/header/time/mod.rs @@ -23,7 +23,7 @@ use crate::{ }; use alloc::collections::BTreeSet; use chrono::{ - DateTime, Datelike, FixedOffset, NaiveDate, NaiveDateTime, Offset, TimeZone, Timelike, Utc, + DateTime, Datelike, NaiveDate, NaiveDateTime, Offset, TimeZone, Timelike, Utc, offset::MappedLocalTime, }; use chrono_tz::{OffsetComponents, OffsetName, Tz}; @@ -862,15 +862,6 @@ unsafe fn set_timezone( } } -#[inline(always)] -pub const fn get_offset(off: c_long) -> Option { - if off < 0 { - FixedOffset::west_opt(off as _) - } else { - FixedOffset::east_opt(off as _) - } -} - const fn blank_tm() -> tm { tm { tm_year: 0,