mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-28 18:10:15 +01:00
do not compare at_midnight in different timezones.
Use localtime to make sure both dates are in the same timezone
This commit is contained in:
parent
f3c36e6e04
commit
006c135a64
3 changed files with 11 additions and 11 deletions
|
|
@ -1055,7 +1055,7 @@ end
|
|||
if recurring_todo.todos.active.count == 0
|
||||
|
||||
# check for next todo either from the due date or the show_from date
|
||||
date_to_check = todo.due.nil? ? todo.show_from : todo.due
|
||||
date_to_check = todo.due.nil? ? todo.show_from.localtime : todo.due.localtime
|
||||
|
||||
# if both due and show_from are nil, check for a next todo from now
|
||||
date_to_check = Time.zone.now if date_to_check.nil?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue