From d8681aebc8b8c16a840c1320c3e0f323468d4e14 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Tue, 15 Mar 2016 16:30:40 +0300 Subject: [PATCH] [ios] Removed 1 minute addition from time formatter. --- iphone/Maps/Categories/TimeUtils.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/iphone/Maps/Categories/TimeUtils.mm b/iphone/Maps/Categories/TimeUtils.mm index cd79ef2f51..4255433022 100644 --- a/iphone/Maps/Categories/TimeUtils.mm +++ b/iphone/Maps/Categories/TimeUtils.mm @@ -6,9 +6,7 @@ + (NSString *)estimatedArrivalTimeWithSeconds:(NSNumber *)seconds { NSInteger const ti = [seconds integerValue]; - // one minute is added to estimated time to destination point - // to prevent displaying that zero minutes are left to the finish near destination point - NSInteger const minutes = ti / 60 + 1; + NSInteger const minutes = ti / 60; NSInteger const hours = minutes / 60; return [NSString stringWithFormat:@"%ld:%02ld", (long)hours, (long)(minutes % 60)]; }