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