Changeset f9c3e7b for skype


Ignore:
Timestamp:
2007-12-16T02:55:56Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
5b9847d
Parents:
191470d
Message:

fixed birthday output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    r191470d rf9c3e7b  
    2424 */
    2525
     26#define _XOPEN_SOURCE
    2627#include <stdio.h>
    2728#include <poll.h>
     
    373374                                                if(strlen(sd->info_birthday))
    374375                                                {
    375                                                         // FIXME 19880101 -> str
    376                                                         g_string_append_printf(st, "Birthday: %s\n", sd->info_birthday);
     376                                                        char ib[256];
     377                                                        struct tm tm;
     378                                                        strptime(sd->info_birthday, "%Y%m%d", &tm);
     379                                                        strftime(ib, 256, "%B %d, %Y", &tm);
     380                                                        g_string_append_printf(st, "Birthday: %s\n", ib);
    377381                                                        g_string_append_printf(st, "Age:\n");
    378382                                                }
Note: See TracChangeset for help on using the changeset viewer.