diff --git a/src/utc_offset.rs b/src/utc_offset.rs index 6bde13a48b..17c7aa749a 100644 --- a/src/utc_offset.rs +++ b/src/utc_offset.rs @@ -378,6 +378,7 @@ fn try_local_offset_at(datetime: OffsetDateTime) -> Option { #[cfg(any(target_os = "solaris", target_os = "illumos"))] { use crate::Date; + use std::convert::TryFrom; let mut tm = tm; if tm.tm_sec == 60 {