Fix invalid Date HTTP header when signing fetch requests
ci/woodpecker/pr/test Pipeline failed Details
ci/woodpecker/pr/build-arm64 unknown status Details
ci/woodpecker/pr/build-amd64 unknown status Details
ci/woodpecker/pr/docs unknown status Details

#503
This commit is contained in:
Clovis 2023-08-07 14:39:59 +02:00 committed by root
parent 368b22fd2f
commit fc3cc61768
1 changed files with 1 additions and 1 deletions

View File

@ -76,6 +76,6 @@ defmodule Pleroma.Signature do
def signed_date, do: signed_date(NaiveDateTime.utc_now())
def signed_date(%NaiveDateTime{} = date) do
Timex.format!(date, "{WDshort}, {0D} {Mshort} {YYYY} {h24}:{m}:{s} GMT")
Timex.lformat!(date, "{WDshort}, {0D} {Mshort} {YYYY} {h24}:{m}:{s} GMT", "en")
end
end