Always use GMT as a timezone for federation (#502)
To prevent a bug with Mastodon
This commit is contained in:
parent
e93b8f4444
commit
21cb0ef437
|
@ -88,7 +88,7 @@ impl Digest {
|
||||||
|
|
||||||
pub fn headers() -> HeaderMap {
|
pub fn headers() -> HeaderMap {
|
||||||
let date: DateTime<Utc> = SystemTime::now().into();
|
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();
|
let mut headers = HeaderMap::new();
|
||||||
headers.insert(USER_AGENT, HeaderValue::from_static(PLUME_USER_AGENT));
|
headers.insert(USER_AGENT, HeaderValue::from_static(PLUME_USER_AGENT));
|
||||||
|
|
Loading…
Reference in New Issue