soc.2009.transport: 02abe3f5: Fixed Delayed Delivery timestamp

hanzz at soc.pidgin.im hanzz at soc.pidgin.im
Sun Jun 28 13:25:26 EDT 2009


-----------------------------------------------------------------
Revision: 02abe3f525bdb920eaeea5ca001c03471aa7f0c2
Ancestor: 1884fed9bc0acc0a06cda4bea8b553630332c450
Author: hanzz at soc.pidgin.im
Date: 2009-06-28T17:22:08
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/02abe3f525bdb920eaeea5ca001c03471aa7f0c2

Modified files:
        user.cpp

ChangeLog: 

Fixed Delayed Delivery timestamp

-------------- next part --------------
============================================================
--- user.cpp	b016840ef974bd6b856d219b3d0162ec7acc1c88
+++ user.cpp	1bc78f76914b829a10162d3ebe1dee37bef950a1
@@ -582,7 +582,7 @@ void User::purpleConversationWriteIM(Pur
 	// Delayed messages, we have to count with some delay
 	if (int(time(NULL))-10>int(mtime)) {
 		char buf[80];
-		strftime(buf, sizeof(buf), "%Y%m%dT%H:%M:%S", localtime(&mtime));
+		strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%SZ", gmtime(&mtime));
 		std::string timestamp(buf);
 		DelayedDelivery *d = new DelayedDelivery(from, timestamp);
 		s.addExtension(d);


More information about the Commits mailing list