Fix bug.
This commit is contained in:
parent
33da76f7ae
commit
388ada1ae3
|
@ -141,7 +141,9 @@ class PHire
|
|||
startt = DateTime.parse(@start_date.strftime("%Y-%m-%d " + unavailable_start_time + Time.zone.to_s))
|
||||
endt = DateTime.parse(@end_date.strftime("%Y-%m-%d " + unavailable_end_time + Time.zone.to_s))
|
||||
if !((startt..endt) & (@start_date..@end_date)).blank?
|
||||
break if (@start_date + interval) > new_end_date
|
||||
@start_date += interval
|
||||
@end_date += interval
|
||||
datet += interval if datet
|
||||
next
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue