mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-24 05:47:41 -04:00
ActivityPub.Utils: Use system time instead of os time for timestamps
This commit is contained in:
parent
20a22362b8
commit
f8d199cbbf
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue