(fix) safe guard against bogus tz offset definition

pull/210/head
Ludovic Marcotte 2016-05-17 11:18:40 -04:00
parent 60f8641d27
commit 877165f4ed
1 changed files with 4 additions and 0 deletions

View File

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