Mercurial > pidgin.yaz
changeset 4627:bcfda01c707a
[gaim-migrate @ 4918]
Ok, how's this?
You know what I was thinking?
"Naysayers" is a funny word.
You know what other word is funny?
"Fillibuster."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 28 Feb 2003 22:51:17 +0000 |
parents | 43f0bfd14614 |
children | ebae85185165 |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Fri Feb 28 14:37:02 2003 +0000 +++ b/src/protocols/oscar/oscar.c Fri Feb 28 22:51:17 2003 +0000 @@ -3546,8 +3546,12 @@ tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Gender:</b> ", info->gender==1 ? "Female" : "Male", NULL); g_free(tmp); } if (info->birthyear || info->birthmonth || info->birthday) { - char date[15]; - snprintf(date, sizeof(date), "%hhd/%hhd/%hd", info->birthmonth, info->birthday, info->birthyear); + char date[30]; + struct tm tm; + tm.tm_mday = (int)info->birthday; + tm.tm_mon = (int)info->birthmonth-1; + tm.tm_year = (int)info->birthyear-1900; + strftime(date, sizeof(date), "%e %B %Y", &tm); tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Birthday:</b> ", date, NULL); g_free(tmp); } if (info->age) {