fix for actions that are due today were marked overdue in the ical calendar feed

This commit is contained in:
Reinier Balt 2008-10-07 09:11:29 +02:00
parent f5c50d367e
commit ddfc0e5e90

View file

@ -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
%>END:VCALENDAR