diff options
-rw-r--r-- | util/poststat.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/util/poststat.c b/util/poststat.c index abd6ef0f..ad552896 100644 --- a/util/poststat.c +++ b/util/poststat.c @@ -35,12 +35,17 @@ struct posttop char author[13]; /* author name */ char board[13]; /* board name */ char title[66]; /* title name */ - time_t date; /* last post's date */ + time4_t date; /* last post's date */ int number; /* post number */ } top[TOPCOUNT], *tp; +char * ctime4(time4_t * clock) +{ + time_t temp = *clock; + return ctime(&temp); +} /* woju @@ -295,7 +300,7 @@ poststat(mytype) if (filter(tp->board)) continue; - strcpy(buf, ctime(&(tp->date))); + strcpy(buf, ctime4(&(tp->date))); buf[20] = 0; fprintf(fp, "[1;31m%3d. [33m¬ÝªO : [32m%-16s[35m¡m %s¡n[36m%4d ½g[33m%16s\n" |