(fix) safe guard against bogus tz offset definition
parent
60f8641d27
commit
877165f4ed
|
@ -63,6 +63,10 @@
|
||||||
offsetTo = [[self uniqueChildWithTag: offsetName]
|
offsetTo = [[self uniqueChildWithTag: offsetName]
|
||||||
flattenedValuesForKey: @""];
|
flattenedValuesForKey: @""];
|
||||||
length = [offsetTo length];
|
length = [offsetTo length];
|
||||||
|
|
||||||
|
if (!length)
|
||||||
|
return seconds;
|
||||||
|
|
||||||
negative = [offsetTo hasPrefix: @"-"];
|
negative = [offsetTo hasPrefix: @"-"];
|
||||||
if (negative)
|
if (negative)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue