mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-08 09:24:18 +00:00
Merge pull request 'Fix invalid Date HTTP header when signing fetch requests' (#619) from Clovis/akkoma:fix-503 into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/619
This commit is contained in:
commit
3f1e2b0b3b
|
@ -76,6 +76,6 @@ defmodule Pleroma.Signature do
|
||||||
def signed_date, do: signed_date(NaiveDateTime.utc_now())
|
def signed_date, do: signed_date(NaiveDateTime.utc_now())
|
||||||
|
|
||||||
def signed_date(%NaiveDateTime{} = date) do
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue