diff src/protocols/msn/notification.c @ 19748:b22d13f55232

[gaim-migrate @ 16684] change the code of SOAP Action,Now using a stupid way to do the soap, wish to implement it in a clean way! borrow a strptime to parse the timestamp received from MSN Server. committed by MaYuan<mayuan2006@gmail.com> committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Thu, 10 Aug 2006 04:38:13 +0000
parents bddd32f36bde
children 38e4a4b404e5
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Sun Aug 06 17:41:51 2006 +0000
+++ b/src/protocols/msn/notification.c	Thu Aug 10 04:38:13 2006 +0000
@@ -1368,6 +1368,24 @@
 
 //	gaim_debug_info("MaYuan","mdata...{%s} \n",msg->body);
 
+//	/*time debug*/
+	{
+	const char *timestr;
+	time_t t;
+	struct tm *tm;
+	char datestr[]="2006-07-15T07:21:26+0700";
+	GDate *date;
+	time(&t);
+	tm = gmtime(&t);
+	timestr = gaim_utf8_strftime("%a, %d %b %Y %T %Z", tm);
+//	strftime(datestr,strlen(datestr),"%a",tm);
+	date = g_date_new();
+	g_date_set_parse(date,datestr);
+	gaim_debug_info("MaYuan","date is NULL?date valid%d\n",g_date_valid(date));
+	g_date_free(date);
+	gaim_debug_info("MaYuan","utf8 time:{%s}\n",timestr);
+	}
+
 	/*new a oim session*/
 	session = cmdproc->session;
 	session->oim = msn_oim_new(session);