Merge pull request #1951 from C-Otto/show_from_midnight

when recurring todos always use midnight for "show from"
This commit is contained in:
Matt Rogers 2016-01-21 16:13:30 -06:00
commit 42ab5e3000
3 changed files with 28 additions and 15 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