Skip to content

Commit

Permalink
Fix nice_datetime helper
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-rl committed Oct 13, 2023
1 parent b1ee1dd commit 4957689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ApplicationHelper
def nice_datetime(datetime)
if datetime.today?
l(datetime, format: "%H:%I")
l(datetime, format: "%H:%M")
elsif datetime.year == Date.current.year
l(datetime, format: "%e. %b")
else
Expand Down

0 comments on commit 4957689

Please sign in to comment.