when recurring todos always use midnight for "show from"

fixes #1940
This commit is contained in:
Carsten Otto 2015-12-13 15:44:40 +01:00
parent 42961e9701
commit cd09cce7a4
2 changed files with 26 additions and 13 deletions

View file

@ -127,7 +127,7 @@ module RecurringTodos
def get_due_date(previous)
case target
when 'due_date'
get_next_date(previous)
get_next_date(previous).at_midnight
when 'show_from_date'
nil
end
@ -141,7 +141,7 @@ module RecurringTodos
get_due_date(previous) - show_from_delta.days
when 'show_from_date'
# Leave due date empty
get_next_date(previous)
get_next_date(previous).at_midnight
end
end