mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-10 22:52:37 +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
|
|
@ -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)
|
||||
Time.zone.local(start.year, start.month, every_x_day).localtime.at_midnight
|
||||
end
|
||||
|
||||
def find_relative_day_of_month(start, n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue