mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-05 08:31:36 +00:00
[#534] Websub fix: made SQL use UTC time zone when comparing with valid_until
(instead of postgresql-server default time zone).
This commit is contained in:
parent
656ed7c84a
commit
465adedb7c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue