comparison libpurple/protocols/jabber/iq.c @ 28676:8d213c65abad

jabber: Don't use C99 time formatters, which are apparently not available on Windows when using MSVC. committer: Paul Aurich <paul@darkrain42.org>
author Florian Quèze <florian@instantbird.org>
date Sun, 29 Nov 2009 17:36:41 +0000
parents 9ae3e70a327b
children 08cc1cf27ac4
comparison
equal deleted inserted replaced
28675:52dc24a5069f 28676:8d213c65abad
198 tzo = xmlnode_new_child(child, "tzo"); 198 tzo = xmlnode_new_child(child, "tzo");
199 xmlnode_insert_data(tzo, tz, -1); 199 xmlnode_insert_data(tzo, tz, -1);
200 200
201 /* <utc>2006-12-19T17:58:35Z</utc> */ 201 /* <utc>2006-12-19T17:58:35Z</utc> */
202 tm = gmtime(&now_t); 202 tm = gmtime(&now_t);
203 date = purple_utf8_strftime("%FT%TZ", tm); 203 date = purple_utf8_strftime("%Y-%m-%dT%H:%M:%SZ", tm);
204 utc = xmlnode_new_child(child, "utc"); 204 utc = xmlnode_new_child(child, "utc");
205 xmlnode_insert_data(utc, date, -1); 205 xmlnode_insert_data(utc, date, -1);
206 206
207 jabber_iq_send(iq); 207 jabber_iq_send(iq);
208 } else { 208 } else {