From 21cb0ef43786adee42065cecf053b8e525fe2c3f Mon Sep 17 00:00:00 2001 From: Baptiste Gelez Date: Mon, 25 Mar 2019 14:13:54 +0100 Subject: [PATCH] Always use GMT as a timezone for federation (#502) To prevent a bug with Mastodon --- plume-common/src/activity_pub/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plume-common/src/activity_pub/request.rs b/plume-common/src/activity_pub/request.rs index 60e36b8d..4a456193 100644 --- a/plume-common/src/activity_pub/request.rs +++ b/plume-common/src/activity_pub/request.rs @@ -88,7 +88,7 @@ impl Digest { pub fn headers() -> HeaderMap { let date: DateTime = SystemTime::now().into(); - let date = format!("{}", date.format("%a, %d %b %Y %T %Z")); + let date = format!("{}", date.format("%a, %d %b %Y %T GMT")); let mut headers = HeaderMap::new(); headers.insert(USER_AGENT, HeaderValue::from_static(PLUME_USER_AGENT));