From 7641bc25cd7f51a70abea4bdb2dd06fe2d6d45c9 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Thu, 5 Jan 2023 11:23:04 -0500 Subject: use utc --- registry/registry.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registry/registry.go b/registry/registry.go index 737ae5b..9d9c2ff 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -13,6 +13,7 @@ import ( "net/url" "strings" "sync" + "time" "git.capotej.com/capotej/communique/config" "git.capotej.com/capotej/communique/models" @@ -250,7 +251,7 @@ func (r *Registry) deliverAcceptToInbox(url, actorUrl *url.URL, follow vocab.Act privKey := &keypair.PrivateKey request, err := http.NewRequest("POST", url.String(), bytes.NewBuffer(jsonData)) - // request.Header.Set("Date", time.Now().Format(http.TimeFormat)) + request.Header.Set("Date", time.Now().UTC().Format(http.TimeFormat)) request.Header.Set("Content-Type", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") request.Header.Set("Host", url.Host) -- cgit v1.2.3