projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated ScheduledActivity
[akkoma]
/
test
/
support
/
helpers.ex
diff --git
a/test/support/helpers.ex
b/test/support/helpers.ex
index a601b3ec8178ccff62fba9e55104dad70547f21e..ec556a916cb96302002fcfca8a234072c2026c4a 100644
(file)
--- a/
test/support/helpers.ex
+++ b/
test/support/helpers.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-201
8
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-201
9
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Tests.Helpers do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Tests.Helpers do
@@
-53,6
+53,12
@@
defmodule Pleroma.Tests.Helpers do
clear_config_all: 2
]
clear_config_all: 2
]
+ def to_datetime(naive_datetime) do
+ naive_datetime
+ |> DateTime.from_naive!("Etc/UTC")
+ |> DateTime.truncate(:second)
+ end
+
def collect_ids(collection) do
collection
|> Enum.map(& &1.id)
def collect_ids(collection) do
collection
|> Enum.map(& &1.id)