diff --git a/Cargo.toml b/Cargo.toml index 8c1f32974..757d3a604 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ atom = ["atom_syndication"] quick-xml = { version = "0.30", features = ["encoding"] } derive_builder = { version = "0.12", optional = true } never = { version = "0.1", optional = true } -chrono = { version = "0.4", optional = true, default-features = false, features = ["alloc"] } +chrono = { version = "0.4.31", optional = true, default-features = false, features = ["alloc"] } url = { version = "2.1", optional = true } mime = { version = "0.3", optional = true } serde = { version = "1.0", optional = true, features = ["derive"] } diff --git a/src/channel.rs b/src/channel.rs index f58b1e152..684cd43cb 100644 --- a/src/channel.rs +++ b/src/channel.rs @@ -369,7 +369,7 @@ impl Channel { /// /// let mut channel = Channel::default(); /// channel.set_pub_date(Utc.with_ymd_and_hms(2017, 1, 1, 12, 0, 0).unwrap().to_rfc2822()); - /// assert_eq!(channel.pub_date(), Some("Sun, 01 Jan 2017 12:00:00 +0000")); + /// assert_eq!(channel.pub_date(), Some("Sun, 1 Jan 2017 12:00:00 +0000")); /// # } /// ``` pub fn set_pub_date(&mut self, pub_date: V) @@ -415,7 +415,7 @@ impl Channel { /// /// let mut channel = Channel::default(); /// channel.set_last_build_date(Utc.with_ymd_and_hms(2017, 1, 1, 12, 0, 0).unwrap().to_rfc2822()); - /// assert_eq!(channel.last_build_date(), Some("Sun, 01 Jan 2017 12:00:00 +0000")); + /// assert_eq!(channel.last_build_date(), Some("Sun, 1 Jan 2017 12:00:00 +0000")); /// # } /// ``` pub fn set_last_build_date(&mut self, last_build_date: V) diff --git a/src/item.rs b/src/item.rs index 2fa96ad37..173665c0b 100644 --- a/src/item.rs +++ b/src/item.rs @@ -377,10 +377,10 @@ impl Item { /// /// let mut item = Item::default(); /// item.set_pub_date(Utc.with_ymd_and_hms(2017, 1, 1, 12, 0, 0).unwrap().to_rfc2822()); - /// assert_eq!(item.pub_date(), Some("Sun, 01 Jan 2017 12:00:00 +0000")); + /// assert_eq!(item.pub_date(), Some("Sun, 1 Jan 2017 12:00:00 +0000")); /// /// item.set_pub_date(FixedOffset::east_opt(2 * 3600).unwrap().with_ymd_and_hms(2017, 1, 1, 12, 0, 0).unwrap().to_rfc2822()); - /// assert_eq!(item.pub_date(), Some("Sun, 01 Jan 2017 12:00:00 +0200")); + /// assert_eq!(item.pub_date(), Some("Sun, 1 Jan 2017 12:00:00 +0200")); /// # } /// ``` pub fn set_pub_date(&mut self, pub_date: V)