From 3e9a69c8d3d291c6bd5140985eadbc0f969ac582 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Mon, 13 Jun 2022 19:09:09 -0500 Subject: [PATCH] Use UTC instead of GMT --- modules/activitypub/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/activitypub/client.go b/modules/activitypub/client.go index c23f3b18f7..2e872d2dbe 100644 --- a/modules/activitypub/client.go +++ b/modules/activitypub/client.go @@ -106,7 +106,7 @@ func (c *Client) NewRequest(b []byte, to string) (req *http.Request, err error) } req.Header.Add("Content-Type", ActivityStreamsContentType) req.Header.Add("Accept-Charset", "utf-8") - req.Header.Add("Date", fmt.Sprintf("%s GMT", time.Now().UTC().Format(time.RFC1123))) + req.Header.Add("Date", fmt.Sprintf("%s UTC", time.Now().UTC().Format(time.RFC1123))) signer, _, err := httpsig.NewSigner(c.algs, c.digestAlg, c.postHeaders, httpsig.Signature, httpsigExpirationTime) if err != nil {