diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-01-25 18:29:43 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-01-25 18:29:43 +0300 |
commit | 465adedb7cc457303278444d0f56960f87fde1e9 (patch) | |
tree | b6bc9d05502d620399fc06a8438757e8f9c601cd /lib | |
parent | 656ed7c84a5d8e423999457f66d8259ec8aa9a44 (diff) | |
download | pleroma-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.ex | 2 |
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) |