Skip to content

Commit 6b8031a

Browse files
committed
Display correct completed_at timestamp in details
Completed jobs would show a relative time value that matched how long the job took rather than when it completed. Closes #137
1 parent 06067b0 commit 6b8031a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/oban/web/live/jobs/timeline_component.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ defmodule Oban.Web.Jobs.TimelineComponent do
102102
|> DateTime.diff(now)
103103
|> Timing.to_duration()
104104

105-
{"executing", "completed", at} ->
105+
{"executing", "completed", _at} ->
106106
words =
107-
at
107+
job.completed_at
108108
|> DateTime.diff(now)
109109
|> Timing.to_words()
110110

0 commit comments

Comments
 (0)