(fix) safe guard against bogus tz offset definition

pull/215/head
Ludovic Marcotte 2016-05-17 11:18:40 -04:00
parent c5526bb70a
commit 98c5f77945
1 changed files with 4 additions and 0 deletions

View File

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