Code cleanup.
This commit is contained in:
parent
2a77855c5e
commit
a26e4a205c
1 changed files with 1 additions and 5 deletions
|
@ -32,11 +32,7 @@ module TimeCalculation
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.dest_time(start_time, diff_in_min)
|
def self.dest_time(start_time, diff_in_min)
|
||||||
start_time_string = start_time.to_s
|
start_time = Time.parse( start_time.to_s + ' UTC' )
|
||||||
if start_time.to_s != /UTC/
|
|
||||||
start_time_string += ' UTC'
|
|
||||||
end
|
|
||||||
start_time = Time.parse( start_time_string )
|
|
||||||
dest_time = diff_in_min.round.business_minute.after( start_time )
|
dest_time = diff_in_min.round.business_minute.after( start_time )
|
||||||
return dest_time
|
return dest_time
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue