Skip to content

Commit

Permalink
fix: use the MELPA time for updated time
Browse files Browse the repository at this point in the history
  • Loading branch information
freesteph committed Jan 17, 2021
1 parent 4cecba0 commit 650645c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/models/theme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,8 @@ def make_datetime(version)

DateTime.parse("#{date} #{time}")
end

def version_to_datetime
make_datetime(version)
end
end
2 changes: 1 addition & 1 deletion app/views/themes/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
%span= theme.radical
.text-xs.text-gray-500
updated
= time_ago_in_words(theme.updated_at)
= time_ago_in_words(theme.version_to_datetime)
ago
- if theme.multi?
%span.text-xs.text-gray-800
Expand Down

0 comments on commit 650645c

Please sign in to comment.