mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-14 13:18:51 +01:00
fix for actions that are due today were marked overdue in the ical calendar feed
This commit is contained in:
parent
f5c50d367e
commit
ddfc0e5e90
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue