mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 13:59:55 +01: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