diff --git a/CHANGELOG.md b/CHANGELOG.md index fed368c74..6726efaa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,18 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver --- +## 0.3.31 [2023-12-19] + +### Added + +- `OFfsetDateTime::new_in_offset` +- `OffsetDateTime::new_utc` + +### Changed + +- The valid range of `UtcOffset` has been expanded from ±23:59:59 to ±25:59:59. This is to support + the full POSIX range while permitting infallible negation. + ## 0.3.30 [2023-10-13] ### Added diff --git a/Cargo.toml b/Cargo.toml index 0541d3c93..4e0e70b4a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ resolver = "2" [workspace.dependencies] time-core = { path = "time-core", version = "=0.1.2" } -time-macros = { path = "time-macros", version = "=0.2.15" } +time-macros = { path = "time-macros", version = "=0.2.16" } criterion = { version = "0.5.1", default-features = false } deranged = { version = "0.3.9", default-features = false, features = [ diff --git a/time-macros/Cargo.toml b/time-macros/Cargo.toml index e9e3b9c04..244a16be0 100644 --- a/time-macros/Cargo.toml +++ b/time-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time-macros" -version = "0.2.15" +version = "0.2.16" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0" diff --git a/time-macros/src/offset.rs b/time-macros/src/offset.rs index b9a3c610a..2796ea874 100644 --- a/time-macros/src/offset.rs +++ b/time-macros/src/offset.rs @@ -52,7 +52,7 @@ pub(crate) fn parse(chars: &mut Peekable) -> Result= 24 { + if hours > 25 { Err(Error::InvalidComponent { name: "hour", value: hours.to_string(), diff --git a/time/Cargo.toml b/time/Cargo.toml index d08c7781b..ab06e320b 100644 --- a/time/Cargo.toml +++ b/time/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time" -version = "0.3.30" +version = "0.3.31" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0"