Skip to content

Commit

Permalink
Merge pull request #41 from fractaledmind/fix-error-last-seen-at
Browse files Browse the repository at this point in the history
After PR #38, ensure that last_seen_at is a DateTime object
  • Loading branch information
fractaledmind authored Apr 9, 2024
2 parents a8d22dc + bc44ff3 commit 4377de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/solid_errors/errors/_row.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<%= error.occurrences_count %>
</td>
<td scope="col" class="whitespace-nowrap px-3 py-4 pt-7 text-gray-500 text-right">
<% last_seen_at = error.recent_occurrence %>
<% last_seen_at = DateTime.strptime(error.recent_occurrence, "%Y-%m-%d %H:%M:%S.%N") %>
<abbr title="<%= last_seen_at.iso8601 %>" class="cursor-help">
<%= time_tag last_seen_at, time_ago_in_words(last_seen_at, scope: 'datetime.distance_in_words.short') %>
</abbr>
Expand Down

0 comments on commit 4377de4

Please sign in to comment.