utils: fix ISO8601 time stamp parsing
commit485198832c94a322f6907a3eeeab98f3c7f34973
authorStefan Becker <chemobejk@gmail.com>
Sat, 3 Aug 2013 13:52:11 +0000 (3 16:52 +0300)
committerStefan Becker <chemobejk@gmail.com>
Sat, 3 Aug 2013 13:52:11 +0000 (3 16:52 +0300)
tree388738cca814898c5e9f4895ff5e224664dbc726
parentae656ae556998a2ffb3aba0511a52f3c891532d1
utils: fix ISO8601 time stamp parsing

The fix in commit d9fc21c87bc4968d52b1c75d2301a6072213d620 was missing a
set of parentheses and therefore the check for a missing time zone
always returned TRUE and we added a "Z" to the string. This broke
parsing of ISO8601 strings that did have a valid time zone indicator.

Noticed while adding error checks to sipe_utils_str_to_time().
src/core/sipe-utils.c
src/core/sipe-utils.h