diff --git a/src/datetime/mod.rs b/src/datetime/mod.rs index dc9349472a..e05625c31f 100644 --- a/src/datetime/mod.rs +++ b/src/datetime/mod.rs @@ -529,10 +529,9 @@ impl From> for DateTime { impl From> for DateTime { /// Convert this `DateTime` instance into a `DateTime` instance. /// - /// Conversion is performed via [`DateTime::with_timezone`]. Note that the converted value returned - /// by this will be created with a fixed timezone offset of 0. + /// Conversion is performed via [`DateTime::with_timezone`]. fn from(src: DateTime) -> Self { - src.with_timezone(&FixedOffset::east_opt(0).unwrap()) + src.with_timezone(&src.offset().fix()) } }