From 8a056a5d2efe12b3dc2fce73267bd43d00b839b4 Mon Sep 17 00:00:00 2001 From: kcwu Date: Thu, 29 Aug 2002 18:31:44 +0000 Subject: fix bug of year display shift by 1 report by zonble.bbs@ptt2 git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@505 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/yearsold.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/yearsold.c b/util/yearsold.c index 3124d778..e0aa5142 100644 --- a/util/yearsold.c +++ b/util/yearsold.c @@ -1,4 +1,4 @@ -/* $Id: yearsold.c,v 1.2 2002/06/06 21:34:15 in2 Exp $ */ +/* $Id: yearsold.c,v 1.3 2002/08/29 18:31:44 kcwu Exp $ */ /* 站上年齡統計 */ #include "bbs.h" @@ -71,7 +71,7 @@ int main() fprintf(fp, "\t\t\t  " BBSNAME " 年齡統計 [%02d/%02d/%02d] \n\n", - ptime->tm_year % 100, ptime->tm_mon, ptime->tm_mday); + ptime->tm_year % 100, ptime->tm_mon + 1, ptime->tm_mday); for (i = MAX_LINE + 1; i > 0; i--) { strcpy(buf, " "); -- cgit v1.2.3