diff --git a/src/dispatcher.rs b/src/dispatcher.rs index 902c0b9e..58fd2d0e 100644 --- a/src/dispatcher.rs +++ b/src/dispatcher.rs @@ -98,7 +98,7 @@ async fn deliver(key: &PKey, to: &str, from: &str, payload: serde_json: let payload = serde_json::to_string(&payload).unwrap(); let digest = format!("sha-256={}", base64::prelude::BASE64_URL_SAFE.encode(openssl::sha::sha256(payload.as_bytes()))); let host = Context::server(to); - let date = chrono::Utc::now().to_rfc2822(); + let date = chrono::Utc::now().format("%D, %d %M %Y %H:%i:%s %T").to_string(); // what the fuck let path = to.replace("https://", "").replace("http://", "").replace(&host, ""); tracing::info!("payload:\n{payload}\n{digest}");