% day = 0 %> <% current_day = days_since_1970(DateTime.current) %> <% comments.each do |comment| %> <% comment_day = days_since_1970(comment.created_at) %> <% if comment_day <= current_day && comment_day > day %> <% day = days_since_1970(comment.created_at) %>
<%= l(comment.created_at, format: :full_date) %>