From 4ab9b38fa81e9f172f9d2272764acace9149d405 Mon Sep 17 00:00:00 2001 From: francescocarzaniga Date: Tue, 22 Sep 2020 22:48:14 +0200 Subject: [PATCH] Update utc_offset.rs Fix illumos support. --- src/utc_offset.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utc_offset.rs b/src/utc_offset.rs index 6bde13a48..17c7aa749 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 {