use correct granularity when checking if a task is overdue

This commit is contained in:
Cole Gleason 2014-01-07 00:44:27 -06:00
parent 7c06069e23
commit 3150b7b31b

View file

@ -4,7 +4,7 @@ li(bindonce='list', bo-id='"task-"+task.id', ng-repeat='task in obj[list.type+"s
// Due Date
span.task-date(ng-if='task.type=="todo" && task.date')
span(ng-class='{"label label-important":moment(task.date).isBefore(_today)}') {{moment(task.date).format('MM/DD')}}
span(ng-class='{"label label-important":moment(task.date).isBefore(_today, "days")}') {{moment(task.date).format('MM/DD')}}
// Streak
span(ng-show='task.streak') {{task.streak}}
span(tooltip=env.t('streakCounter'))