mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-19 13:48:09 +01:00
Revert breaking commits
This reverts the following commits:c129b8a06fc7c923a317006c135a64
This commit is contained in:
parent
aa14a8e802
commit
556c68c2e6
6 changed files with 63 additions and 63 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.localtime : todo.due.localtime
|
||||
date_to_check = todo.due.nil? ? todo.show_from : todo.due
|
||||
|
||||
# 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?
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ module RecurringTodos
|
|||
# TODO: recheck if future rails versions have this problem too
|
||||
start = Time.utc(start.year, start.month, start.day)+n.months
|
||||
end
|
||||
Time.zone.local(start.year, start.month, every_x_day).localtime.at_midnight
|
||||
Time.zone.local(start.year, start.month, every_x_day)
|
||||
end
|
||||
|
||||
def find_relative_day_of_month(start, n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue