Use :utc_datetime

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-07-16 16:09:47 +02:00
commit 597f56b4c4
4 changed files with 6 additions and 6 deletions

View file

@ -646,9 +646,9 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
mute_expires_at: mute_expires_at
} = AccountView.render("show.json", %{user: other_user, for: user, mutes: true})
assert NaiveDateTime.diff(
assert DateTime.diff(
mute_expires_at,
NaiveDateTime.utc_now() |> NaiveDateTime.add(24 * 60 * 60)
DateTime.utc_now() |> DateTime.add(24 * 60 * 60)
) in -3..3
end
end