mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
correctly cast creation time
This commit is contained in:
parent
3818a0e0d1
commit
570319de97
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ defmodule Philomena.Servers.UserLinkUpdater do
|
|||
|
||||
defp automatic_verify(user_link) do
|
||||
now = DateTime.utc_now() |> DateTime.truncate(:second)
|
||||
diff = DateTime.diff(now, user_link.created_at, :second)
|
||||
diff = DateTime.diff(now, DateTime.from_naive!(user_link.created_at, "Etc/UTC"), :second)
|
||||
|
||||
# Set next check time according to how long link has been pending
|
||||
|
||||
|
|
Loading…
Reference in a new issue