Permalink
Browse files

bugfix: don't show past todo items in "next 7 days"

  • Loading branch information...
1 parent 0a111a4 commit 15fec57e848fa2a0d192ea432260f5bda38bea17 Christian Lang committed Feb 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Todo.Business/FilterService.cs
@@ -42,7 +42,7 @@ public FilterOptions FilterOptions
return t => t.DueDate == tomorrow;
case FilterOptions.NextWeek:
var in7Days = DateTime.Today.AddDays(7);
- return t => t.DueDate <= in7Days;
+ return t => t.DueDate >= DateTime.Today && t.DueDate <= in7Days;
case FilterOptions.Later:
var in8Days = DateTime.Today.AddDays(8);
return t => t.DueDate >= in8Days;

0 comments on commit 15fec57

Please sign in to comment.