projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'develop' into issue/1383
[akkoma]
/
test
/
support
/
helpers.ex
diff --git
a/test/support/helpers.ex
b/test/support/helpers.ex
index 9f817622d813a54384a2ccfcd3084dd53ea2bc77..d36c29cef1ea97c0f6dc061277daccbaac5cc783 100644
(file)
--- a/
test/support/helpers.ex
+++ b/
test/support/helpers.ex
@@
-54,6
+54,12
@@
defmodule Pleroma.Tests.Helpers do
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)