mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-01 07:05:44 +00:00
(fix) safe guard against bogus tz offset definition
This commit is contained in:
1 parent
c5526bb70a
commit
98c5f77945
1 file changed
+4
@@ -64,6 +64,10 @@
|
||||
offsetTo = [[self uniqueChildWithTag: offsetName]
|
||||
flattenedValuesForKey: @""];
|
||||
length = [offsetTo length];
|
||||
|
||||
if (!length)
|
||||
return seconds;
|
||||
|
||||
negative = [offsetTo hasPrefix: @"-"];
|
||||
if (negative)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user