diff --git a/shared/src/time.rs b/shared/src/time.rs index ea714a5a6..3cdca8af7 100644 --- a/shared/src/time.rs +++ b/shared/src/time.rs @@ -53,7 +53,7 @@ impl TryFrom<&TimeStampMilliStr> for TimeStamp { fn try_from(value: &TimeStampMilliStr) -> Result { let millis = value.0.parse::()?; if let Some(naive) = NaiveDateTime::from_timestamp_opt(millis / 1000, 0) { - let datetime: DateTime = DateTime::from_utc(naive, Utc); + let datetime: DateTime = DateTime::from_naive_utc_and_offset(naive, Utc); Ok(Self(datetime)) } else { Err(TimeStampError::EmptyNaiveDateTime(