From 6c32f93fe41341609eef6e9938d6ad9aa675a763 Mon Sep 17 00:00:00 2001 From: victor Date: Sun, 7 May 2006 05:21:27 +0000 Subject: fix bug of revious revision git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3354 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mbbsd/user.c b/mbbsd/user.c index 2dbd638e..176d6996 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -143,11 +143,11 @@ user_display(const userec_t * u, int adminmode) sethomedir(genbuf, u->userid); prints(" 私人信箱: %d 封 (購買信箱: %d 封)\n" " 手機號碼: %010d\n" - " 生 日: %02i/%02i/%02i\n" + " 生 日: %04i/%02i/%02i\n" " 小雞名字: %s\n", get_num_records(genbuf, sizeof(fileheader_t)), u->exmailbox, u->mobile, - u->month, u->day, u->year % 100, u->mychicken.name); + u->year + 1900, u->month, u->day, u->mychicken.name); #ifdef PLAY_ANGEL if (adminmode) prints(" 小 天 使: %s\n", @@ -687,7 +687,7 @@ uinfo_query(userec_t *u, int adminmode, int unum) continue; x.month = (unsigned char)m; x.day = (unsigned char)d; - x.year = (unsigned char)y; + x.year = (unsigned char)(y - 1900); } if (!adminmode && x.year < 40) continue; -- cgit v1.2.3