aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2022-07-16 16:09:47 +0200
committermarcin mikołajczak <git@mkljczk.pl>2022-07-16 16:28:22 +0200
commit597f56b4c4db3c63ff66fc93717d3b20655e1543 (patch)
treea00d47fcac36d9793bd43b294007888ae1b6b70e /test
parent0b16ce79f91c0f7c99cf11567e29b1adb139ff35 (diff)
downloadpleroma-597f56b4c4db3c63ff66fc93717d3b20655e1543.tar.gz
Use :utc_datetime
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/mastodon_api/views/account_view_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pleroma/web/mastodon_api/views/account_view_test.exs b/test/pleroma/web/mastodon_api/views/account_view_test.exs
index cc45ce4e9..8fa946d43 100644
--- a/test/pleroma/web/mastodon_api/views/account_view_test.exs
+++ b/test/pleroma/web/mastodon_api/views/account_view_test.exs
@@ -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