From d5f4da39342de874cace9124f18707492d00f543 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 20 May 2015 11:59:26 -0400 Subject: [PATCH] (fix) Don't return duplicated timezones --- SOPE/NGCards/iCalTimeZone.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SOPE/NGCards/iCalTimeZone.m b/SOPE/NGCards/iCalTimeZone.m index 21fbbb22f..327733ed3 100644 --- a/SOPE/NGCards/iCalTimeZone.m +++ b/SOPE/NGCards/iCalTimeZone.m @@ -1,6 +1,6 @@ /* iCalTimeZone.m - this file is part of SOPE * - * Copyright (C) 2006-2014 Inverse inc. + * Copyright (C) 2006-2015 Inverse inc. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -147,7 +147,8 @@ static NSArray *knownTimeZones; if (ext.location != NSNotFound) { zone = [zone substringToIndex: ext.location]; - [timeZoneNames addObject: zone]; + if (![timeZoneNames containsObject: zone]) + [timeZoneNames addObject: zone]; } } }