changeset 31522:6d3ba10e3f48

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.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 02 May 2011 15:39:57 +0000
parents 1e1b598c725e
children 5dd34261a607
files libpurple/protocols/mxit/profile.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/mxit/profile.c	Mon May 02 15:33:10 2011 +0000
+++ b/libpurple/protocols/mxit/profile.c	Mon May 02 15:39:57 2011 +0000
@@ -124,7 +124,7 @@
 
 	/* 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;