Mercurial > pidgin.yaz
comparison src/protocols/jabber/jabber.c @ 5284:0a38c5a00b85
[gaim-migrate @ 5656]
jabber now compiles :-)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 02 May 2003 18:13:08 +0000 |
parents | 36523a0d8459 |
children | cfbd0cb3f18b |
comparison
equal
deleted
inserted
replaced
5283:1872e8efba87 | 5284:0a38c5a00b85 |
---|---|
1231 | 1231 |
1232 static time_t iso8601_to_time(char *timestamp) | 1232 static time_t iso8601_to_time(char *timestamp) |
1233 { | 1233 { |
1234 struct tm t; | 1234 struct tm t; |
1235 time_t retval = 0; | 1235 time_t retval = 0; |
1236 char tz[6] = ""; | |
1236 localtime_r(NULL, &t); | 1237 localtime_r(NULL, &t); |
1237 char tz[6] = ""; | |
1238 | 1238 |
1239 if(sscanf(timestamp, "%04d%02d%02dT%02d:%02d:%02d%5s", | 1239 if(sscanf(timestamp, "%04d%02d%02dT%02d:%02d:%02d%5s", |
1240 &t.tm_year, &t.tm_mon, &t.tm_mday, &t.tm_hour, &t.tm_min, &t.tm_sec, tz)) | 1240 &t.tm_year, &t.tm_mon, &t.tm_mday, &t.tm_hour, &t.tm_min, &t.tm_sec, tz)) |
1241 { | 1241 { |
1242 t.tm_year -= 1900; | 1242 t.tm_year -= 1900; |