(fix) safe guard against bogus tz offset definition

This commit is contained in:
Ludovic Marcotte
2016-05-17 11:18:40 -04:00
parent c5526bb70a
commit 98c5f77945

View File

@@ -64,6 +64,10 @@
offsetTo = [[self uniqueChildWithTag: offsetName]
flattenedValuesForKey: @""];
length = [offsetTo length];
if (!length)
return seconds;
negative = [offsetTo hasPrefix: @"-"];
if (negative)
{