mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
chore: update chrono from 0.4.34 to 0.4.37
This commit is contained in:
@@ -575,11 +575,7 @@ impl<'a> MimeFactory<'a> {
|
||||
.protected
|
||||
.push(Header::new("Subject".into(), encoded_subject));
|
||||
|
||||
let date = chrono::Utc
|
||||
.from_local_datetime(
|
||||
&chrono::NaiveDateTime::from_timestamp_opt(self.timestamp, 0)
|
||||
.context("can't convert timestamp to NativeDateTime")?,
|
||||
)
|
||||
let date = chrono::DateTime::<chrono::Utc>::from_timestamp(self.timestamp, 0)
|
||||
.unwrap()
|
||||
.to_rfc2822();
|
||||
headers.unprotected.push(Header::new("Date".into(), date));
|
||||
|
||||
Reference in New Issue
Block a user