Skip to content

Commit 823a59f

Browse files
committed
small fix
1 parent 7b3a63d commit 823a59f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/queuetopia.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ defmodule Queuetopia do
6666
end
6767

6868
defp to_ms({duration, unit}) do
69-
DateTime.utc_now()
69+
timestamp = DateTime.utc_now()
70+
timestamp
7071
|> DateTime.add(duration, unit)
71-
|> DateTime.diff(DateTime.utc_now(), :millisecond)
72+
|> DateTime.diff(timestamp, :millisecond)
7273
end
7374

7475
@doc """

0 commit comments

Comments
 (0)