Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix timezone + future dates

  • Loading branch information...
commit 61ffdf1be511316230bf33059d635478cea3e11e 1 parent 4f07d27
@kneath authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  views/timeline.erb
View
2  views/timeline.erb
@@ -13,7 +13,7 @@
<tbody>
<tr>
<% segmented_range(@milestone.start_date, @milestone.end_date, :segments => 15) do |day| %>
- <td class="<%= 'future' if day > Time.now.to_datetime %>"><%= (day_event = @timeline_events.select{ |e| e.created_on.strftime("%B %e") == day.strftime("%B %e") }[0]) ? day_event.num_tickets_open : 0 %></td>
+ <td class="<%= 'future' if Date.parse(day.to_s) > Date.today %>"><%= (day_event = @timeline_events.select{ |e| e.created_on.strftime("%B %e") == day.strftime("%B %e") }[0]) ? day_event.num_tickets_open : 0 %></td>
<% end %>
</tr>
</tbody>
Please sign in to comment.
Something went wrong with that request. Please try again.