mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-02 23:55:33 +00:00
(fix) safe guard against bogus tz offset definition
This commit is contained in:
1 parent
60f8641d27
commit
877165f4ed
1 file changed
+4
@@ -63,6 +63,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