Skip to content

Commit

Permalink
Remove deprecated datetime function
Browse files Browse the repository at this point in the history
  • Loading branch information
miakizz committed Dec 24, 2023
1 parent d2bc9d4 commit d7b3cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Utc>::from_utc(
DateTime::<Utc>::from_naive_utc_and_offset(
NaiveDateTime::parse_from_str(
get_str(&post["created_at"]),
"%Y-%m-%dT%H:%M:%S%.3fZ",
Expand Down

0 comments on commit d7b3cd2

Please sign in to comment.