mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-30 22:08:49 +01:00
Merge pull request #1886 from C-Otto/tracks-1878
Ignore time, so that one can always defer to the due date
This commit is contained in:
commit
4c24c4cd18
1 changed files with 1 additions and 1 deletions
|
|
@ -179,7 +179,7 @@ module TodosHelper
|
|||
options = {:x_defer_alert => false, :class => "icon_defer_item icon_defer_#{days}_item", :id => "defer_#{days}_#{dom_id(todo)}" }
|
||||
if todo.due
|
||||
futuredate = (todo.show_from || todo.user.date) + days.days
|
||||
if futuredate > todo.due
|
||||
if futuredate.at_midnight > todo.due.at_midnight
|
||||
options[:x_defer_alert] = true
|
||||
options[:x_defer_date_after_due_date] = t('todos.defer_date_after_due_date')
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue