# HG changeset patch # User Daniel Atallah # Date 1304350797 0 # Node ID 6d3ba10e3f48b167734cae6d202c43b45184def9 # Parent 1e1b598c725e5d6d4a0814b5b5aefd18c5346458 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. diff -r 1e1b598c725e -r 6d3ba10e3f48 libpurple/protocols/mxit/profile.c --- 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;