diff --git a/app/views/todos/calendar.ics.erb b/app/views/todos/calendar.ics.erb index 27189470..46a02f60 100644 --- a/app/views/todos/calendar.ics.erb +++ b/app/views/todos/calendar.ics.erb @@ -7,7 +7,7 @@ X-WR-CALNAME:Tracks <% for todo in @due_all due_date = todo.due overdue_text = "" - if due_date < Time.zone.now + if due_date.at_midnight < Time.zone.now.at_midnight due_date = Time.zone.now overdue_text = "Overdue: " end @@ -28,4 +28,4 @@ SUMMARY:<%= overdue_text + todo.description %> TRANSP:TRANSPARENT END:VEVENT <% end -%>END:VCALENDAR \ No newline at end of file +%>END:VCALENDAR