ActivityPub.Utils: Use system time instead of os time for timestamps

This commit is contained in:
lain 2020-05-18 18:26:12 +02:00
parent 20a22362b8
commit f8d199cbbf

View file

@ -115,7 +115,9 @@ defmodule Pleroma.Web.ActivityPub.Utils do
end
def make_date do
DateTime.utc_now() |> DateTime.to_iso8601()
System.system_time()
|> DateTime.from_unix!(:native, Calendar.ISO)
|> DateTime.to_iso8601()
end
def generate_activity_id do