Always use GMT as a timezone for federation (#502)

To prevent a bug with Mastodon
This commit is contained in:
Baptiste Gelez 2019-03-25 14:13:54 +01:00 committed by fdb-hiroshima
parent e93b8f4444
commit 21cb0ef437
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ impl Digest {
pub fn headers() -> HeaderMap {
let date: DateTime<Utc> = 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));