Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 241:8584f919d9b9
[/trunk] Changeset 254 by mikael
* Use ISO8601 for time format in log file
* Update TODO
author | mikael |
---|---|
date | Mon, 13 Jun 2005 19:29:09 +0000 |
parents | c8df64f43625 |
children | 5f8b529412bd |
comparison
equal
deleted
inserted
replaced
240:723433a677f0 | 241:8584f919d9b9 |
---|---|
625 } | 625 } |
626 } | 626 } |
627 | 627 |
628 // Timestamp? | 628 // Timestamp? |
629 if ((x = xmlnode_get_tag(packet->x, "x")) != NULL) { | 629 if ((x = xmlnode_get_tag(packet->x, "x")) != NULL) { |
630 if ((p = xmlnode_get_attrib(x, "stamp")) != NULL) { | 630 if ((p = xmlnode_get_attrib(x, "stamp")) != NULL) |
631 struct tm tstamp; | 631 timestamp = from_iso8601(p, 1); |
632 memset(&tstamp, 0, sizeof(tstamp)); | |
633 if (strptime(p, "%Y%m%dT%H:%M:%S", &tstamp)) | |
634 timestamp = mktime(&tstamp) - timezone; | |
635 } | |
636 } | 632 } |
637 | 633 |
638 if (from && body) | 634 if (from && body) |
639 gotmessage(type, from, body, enc, timestamp); | 635 gotmessage(type, from, body, enc, timestamp); |
640 if (tmp) | 636 if (tmp) |