diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-05-07 13:21:27 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-05-07 13:21:27 +0800 |
commit | 6c32f93fe41341609eef6e9938d6ad9aa675a763 (patch) | |
tree | 18e4502e0d966c392b257cfcf771068d905b4a10 | |
parent | 0764d07f9886b2645b6649201495762adc5af96e (diff) | |
download | pttbbs-6c32f93fe41341609eef6e9938d6ad9aa675a763.tar pttbbs-6c32f93fe41341609eef6e9938d6ad9aa675a763.tar.gz pttbbs-6c32f93fe41341609eef6e9938d6ad9aa675a763.tar.bz2 pttbbs-6c32f93fe41341609eef6e9938d6ad9aa675a763.tar.lz pttbbs-6c32f93fe41341609eef6e9938d6ad9aa675a763.tar.xz pttbbs-6c32f93fe41341609eef6e9938d6ad9aa675a763.tar.zst pttbbs-6c32f93fe41341609eef6e9938d6ad9aa675a763.zip |
fix bug of revious revision
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3354 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/user.c | 6 |
1 files 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; |