From d7b3cd231a6b4b5b9a0d340317d59f7411908882 Mon Sep 17 00:00:00 2001 From: Nathan Kiesman Date: Sun, 24 Dec 2023 16:09:34 -0500 Subject: [PATCH] Remove deprecated datetime function --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3105133..339871c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -338,12 +338,12 @@ fn handle_pop_connection( //oh lawd he comin let from_address = string_concat!(get_str(&post["account"]["acct"]), "@", account_domain); let mut message = MessageBuilder::new() - .from((display_name.as_str(), from_address.as_s)) + .from((display_name.as_str(), from_address.as_str())) .to((account.display_name.clone(), account_addr.clone())) .subject(subject) //Fun fact: this line of code is 181 characters long .date( - DateTime::::from_utc( + DateTime::::from_naive_utc_and_offset( NaiveDateTime::parse_from_str( get_str(&post["created_at"]), "%Y-%m-%dT%H:%M:%S%.3fZ",