From a26e4a205ccb8045f09b48e67576f85b3c7ba1e0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 25 Mar 2013 13:49:01 +0100 Subject: [PATCH] Code cleanup. --- lib/time_calculation.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/time_calculation.rb b/lib/time_calculation.rb index e7714e380..d0c904064 100644 --- a/lib/time_calculation.rb +++ b/lib/time_calculation.rb @@ -32,11 +32,7 @@ module TimeCalculation end def self.dest_time(start_time, diff_in_min) - start_time_string = start_time.to_s - if start_time.to_s != /UTC/ - start_time_string += ' UTC' - end - start_time = Time.parse( start_time_string ) + start_time = Time.parse( start_time.to_s + ' UTC' ) dest_time = diff_in_min.round.business_minute.after( start_time ) return dest_time end