mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-15 16:56:32 +01:00
Merge pull request #1951 from C-Otto/show_from_midnight
when recurring todos always use midnight for "show from"
This commit is contained in:
commit
42ab5e3000
3 changed files with 28 additions and 15 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue