From 21db907e17260d621529b44def2427ebe6e87ad0 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 27 Mar 2024 02:08:50 +0100 Subject: [PATCH] fix: omg is it the day of the week? --- src/dispatcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatcher.rs b/src/dispatcher.rs index ed46fc73..05cca61e 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().format("%d %b %Y %H:%M:%S GMT").to_string(); // lmao @ "GMT" + let date = chrono::Utc::now().format("%a, %d %b %Y %H:%M:%S GMT").to_string(); // lmao @ "GMT" let path = to.replace("https://", "").replace("http://", "").replace(&host, ""); tracing::info!("payload:\n{payload}\n{digest}");