(fix) safe guard against bogus tz offset definition

This commit is contained in:
Ludovic Marcotte
2016-05-17 11:18:40 -04:00
parent 60f8641d27
commit 877165f4ed
+4
View File
@@ -63,6 +63,10 @@
offsetTo = [[self uniqueChildWithTag: offsetName]
flattenedValuesForKey: @""];
length = [offsetTo length];
if (!length)
return seconds;
negative = [offsetTo hasPrefix: @"-"];
if (negative)
{