aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-01-25 18:29:43 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-01-25 18:29:43 +0300
commit465adedb7cc457303278444d0f56960f87fde1e9 (patch)
treeb6bc9d05502d620399fc06a8438757e8f9c601cd /lib
parent656ed7c84a5d8e423999457f66d8259ec8aa9a44 (diff)
downloadpleroma-465adedb7cc457303278444d0f56960f87fde1e9.tar.gz
[#534] Websub fix: made SQL use UTC time zone when comparing with `valid_until` (instead of postgresql-server default time zone).
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/websub/websub.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/websub/websub.ex b/lib/pleroma/web/websub/websub.ex
index bb4442591..cbb7a5ac7 100644
--- a/lib/pleroma/web/websub/websub.ex
+++ b/lib/pleroma/web/websub/websub.ex
@@ -64,7 +64,7 @@ defmodule Pleroma.Web.Websub do
from(
sub in WebsubServerSubscription,
where: sub.topic == ^topic and sub.state == "active",
- where: fragment("? > NOW()", sub.valid_until)
+ where: fragment("? > (NOW() at time zone 'UTC')", sub.valid_until)
)
subscriptions = Repo.all(query)