Mercurial > pidgin.yaz
diff src/util.c @ 9725:242a5a97c952
[gaim-migrate @ 10586]
Fix an indentation oopsie.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 08 Aug 2004 17:37:56 +0000 |
parents | 25866d09063d |
children | 8d891252f2ac |
line wrap: on
line diff
--- a/src/util.c Sun Aug 08 17:15:45 2004 +0000 +++ b/src/util.c Sun Aug 08 17:37:56 2004 +0000 @@ -536,20 +536,20 @@ if (!sscanf(c, "%02d", &t->tm_mday)) return 0; c += 2; if (*c == 'T' || *c == '.') { /* we have more than a date, keep going */ - c++; /* skip the "T" */ - - /* 2 digit hour */ - if (sscanf(c, "%02d:%02d:%02d", &t->tm_hour, &t->tm_min, &t->tm_sec) == 3 || - sscanf(c, "%02d%02d%02d", &t->tm_hour, &t->tm_min, &t->tm_sec) == 3) { - int tzhrs, tzmins; - c += 8; - if (*c == '.') /* dealing with precision we don't care about */ - c += 4; - if ((*c == '+' || *c == '-') && - sscanf(c+1, "%02d:%02d", &tzhrs, &tzmins)) { - tzoff = tzhrs*60*60 + tzmins*60; - if (*c == '+') - tzoff *= -1; + c++; /* skip the "T" */ + + /* 2 digit hour */ + if (sscanf(c, "%02d:%02d:%02d", &t->tm_hour, &t->tm_min, &t->tm_sec) == 3 || + sscanf(c, "%02d%02d%02d", &t->tm_hour, &t->tm_min, &t->tm_sec) == 3) { + int tzhrs, tzmins; + c += 8; + if (*c == '.') /* dealing with precision we don't care about */ + c += 4; + if ((*c == '+' || *c == '-') && + sscanf(c+1, "%02d:%02d", &tzhrs, &tzmins)) { + tzoff = tzhrs*60*60 + tzmins*60; + if (*c == '+') + tzoff *= -1; } if (tzoff || utc) {