mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-06-02 11:50:40 +00:00
ActivityPub.Utils: Use system time instead of os time for timestamps
This commit is contained in:
parent
20a22362b8
commit
f8d199cbbf
|
@ -115,7 +115,9 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
||||||
end
|
end
|
||||||
|
|
||||||
def make_date do
|
def make_date do
|
||||||
DateTime.utc_now() |> DateTime.to_iso8601()
|
System.system_time()
|
||||||
|
|> DateTime.from_unix!(:native, Calendar.ISO)
|
||||||
|
|> DateTime.to_iso8601()
|
||||||
end
|
end
|
||||||
|
|
||||||
def generate_activity_id do
|
def generate_activity_id do
|
||||||
|
|
Loading…
Reference in a new issue