diff --git a/src/offset_date_time.rs b/src/offset_date_time.rs index 09f92639c..dec6185ea 100644 --- a/src/offset_date_time.rs +++ b/src/offset_date_time.rs @@ -63,6 +63,9 @@ impl OffsetDateTime { /// assert!(OffsetDateTime::now_local().is_ok()); /// # } /// ``` + /// + /// Due to a [soundness bug](https://github.com/time-rs/time/issues/293), + /// the error value is currently always returned on Unix-like platforms. #[cfg(feature = "local-offset")] #[cfg_attr(__time_03_docs, doc(cfg(feature = "local-offset")))] pub fn now_local() -> Result { diff --git a/src/utc_offset.rs b/src/utc_offset.rs index 720026a16..5a9ed4f9a 100644 --- a/src/utc_offset.rs +++ b/src/utc_offset.rs @@ -130,6 +130,9 @@ impl UtcOffset { /// assert!(local_offset.is_ok()); /// # } /// ``` + /// + /// Due to a [soundness bug](https://github.com/time-rs/time/issues/293), + /// the error value is currently always returned on Unix-like platforms. #[cfg(feature = "local-offset")] #[cfg_attr(__time_03_docs, doc(cfg(feature = "local-offset")))] pub fn local_offset_at(datetime: OffsetDateTime) -> Result {