diff 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
line wrap: on
line diff
--- a/mcabber/src/jabglue.c	Sat Jun 11 19:27:40 2005 +0000
+++ b/mcabber/src/jabglue.c	Mon Jun 13 19:29:09 2005 +0000
@@ -627,12 +627,8 @@
 
           // Timestamp?
           if ((x = xmlnode_get_tag(packet->x, "x")) != NULL) {
-            if ((p = xmlnode_get_attrib(x, "stamp")) != NULL) {
-              struct tm tstamp;
-              memset(&tstamp, 0, sizeof(tstamp));
-              if (strptime(p, "%Y%m%dT%H:%M:%S", &tstamp))
-                timestamp = mktime(&tstamp) - timezone;
-            }
+            if ((p = xmlnode_get_attrib(x, "stamp")) != NULL)
+              timestamp = from_iso8601(p, 1);
           }
 
           if (from && body)