diff options
Diffstat (limited to 'skype/skype.c')
| -rw-r--r-- | skype/skype.c | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/skype/skype.c b/skype/skype.c index 5322d3ac..f0f608a7 100644 --- a/skype/skype.c +++ b/skype/skype.c @@ -23,6 +23,7 @@   *  USA.   */ +#define _XOPEN_SOURCE  #include <stdio.h>  #include <poll.h>  #include <bitlbee.h> @@ -372,8 +373,11 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c  					{  						if(strlen(sd->info_birthday))  						{ -							// FIXME 19880101 -> str -							g_string_append_printf(st, "Birthday: %s\n", sd->info_birthday); +							char ib[256]; +							struct tm tm; +							strptime(sd->info_birthday, "%Y%m%d", &tm); +							strftime(ib, 256, "%B %d, %Y", &tm); +							g_string_append_printf(st, "Birthday: %s\n", ib);  							g_string_append_printf(st, "Age:\n");  						}  						g_free(sd->info_birthday);  | 
