pidgin: 7c578ea8: Use purple_str_to_time() instead of strp...

datallah at pidgin.im datallah at pidgin.im
Mon May 2 11:56:21 EDT 2011


----------------------------------------------------------------------
Revision: 7c578ea8dc93f449d6a8b5cc2ab39117fb09037f
Parent:   b71c7d50a44b91ee81c9a3f3409941a5457d5e90
Author:   datallah at pidgin.im
Date:     05/02/11 11:39:57
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7c578ea8dc93f449d6a8b5cc2ab39117fb09037f

Changelog: 

Use purple_str_to_time() instead of strptime(), which doesn't exist on Windows.

The previous commit (b71c7d50a44b91ee81c9a3f3409941a5457d5e90) is needed for
this to work correctly.

Changes against parent b71c7d50a44b91ee81c9a3f3409941a5457d5e90

  patched  libpurple/protocols/mxit/profile.c

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/profile.c	7ad49d47b8d747b627ec1e94003627233fd7e8bc
+++ libpurple/protocols/mxit/profile.c	a1c3f42335e4e5239c34132dda68f7e0d652cdab
@@ -124,7 +124,7 @@ static int calculateAge( const char* dat
 
 	/* decode hdate */
 	memset( &bdate, 0, sizeof( struct tm ) );
-	strptime( date, "%Y-%m-%d", &bdate );
+	purple_str_to_time(date, FALSE, &bdate, NULL, NULL);
 
 	/* calculate difference */
 	age = now.tm_year - bdate.tm_year;


More information about the Commits mailing list