Skip to content

Commit

Permalink
nice_datetime_with_time helper update
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-rl committed Oct 13, 2023
1 parent 535350f commit 10e15eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def nice_datetime_with_time(datetime)
if datetime.today?
l(datetime, format: '%H:%M')
elsif datetime.year == Date.current.year
l(datetime, format: '%e. %b %H:%M')
l(datetime, format: '%H:%M %e. %b')
else
l(datetime, format: '%e. %b %Y %H:%M')
l(datetime, format: '%H:%M %e. %b %Y')
end
end
end

0 comments on commit 10e15eb

Please sign in to comment.