src/protocols/oscar/oscar.c

changeset 4627
4895653771a7
parent 4625
f5b87130e1c4
child 4628
446fbf2f42d2
--- 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) {

mercurial