mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 11:10:12 +01:00
fix #841. New todos are now using at_midnight instead of the time of checking complete
please test to make sure it has the intended behavior
This commit is contained in:
parent
fc84a5979a
commit
cf625be4b4
1 changed files with 1 additions and 1 deletions
|
|
@ -817,7 +817,7 @@ class TodosController < ApplicationController
|
|||
# for tomorrow.
|
||||
date = date_to_check.at_midnight >= Time.zone.now.at_midnight ? date_to_check : Time.zone.now-1.day
|
||||
|
||||
new_recurring_todo = create_todo_from_recurring_todo(recurring_todo, date)
|
||||
new_recurring_todo = create_todo_from_recurring_todo(recurring_todo, date.at_midnight)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue