summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-30 02:31:44 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-30 02:31:44 +0800
commit8a056a5d2efe12b3dc2fce73267bd43d00b839b4 (patch)
tree64dda190cb9d596b237b85bd2ebf179118eb4d54 /util
parent264c36242e94aeb423a5f05de749b36b21df25c0 (diff)
downloadpttbbs-8a056a5d2efe12b3dc2fce73267bd43d00b839b4.tar
pttbbs-8a056a5d2efe12b3dc2fce73267bd43d00b839b4.tar.gz
pttbbs-8a056a5d2efe12b3dc2fce73267bd43d00b839b4.tar.bz2
pttbbs-8a056a5d2efe12b3dc2fce73267bd43d00b839b4.tar.lz
pttbbs-8a056a5d2efe12b3dc2fce73267bd43d00b839b4.tar.xz
pttbbs-8a056a5d2efe12b3dc2fce73267bd43d00b839b4.tar.zst
pttbbs-8a056a5d2efe12b3dc2fce73267bd43d00b839b4.zip
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
Diffstat (limited to 'util')
-rw-r--r--util/yearsold.c4
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  " 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, " ");