diff options
-rw-r--r-- | util/yearsold.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 [1;33;45m " BBSNAME " 年齡統計 [%02d/%02d/%02d] [40m\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, " "); |