diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-05 16:23:04 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-05 16:23:04 +0000 |
commit | 7641bc25cd7f51a70abea4bdb2dd06fe2d6d45c9 (patch) | |
tree | 9c5f0cb196c26bebbc0c9d5cd234e7a0d75876ac /registry | |
parent | 2b0b346c2c737c7866799e60740c43e79fe28649 (diff) | |
download | communique-7641bc25cd7f51a70abea4bdb2dd06fe2d6d45c9.tar.gz |
use utc
Diffstat (limited to 'registry')
-rw-r--r-- | registry/registry.go | 3 |
1 files changed, 2 insertions, 1 deletions
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) |