From ddfc0e5e90bbf9f0701e5a1f5ea1c735dcb8b393 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Tue, 7 Oct 2008 09:11:29 +0200 Subject: [PATCH] fix for actions that are due today were marked overdue in the ical calendar feed --- app/views/todos/calendar.ics.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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