diff options
Diffstat (limited to 'util/angel.c')
-rw-r--r-- | util/angel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/angel.c b/util/angel.c index 57417d0e..f074285f 100644 --- a/util/angel.c +++ b/util/angel.c @@ -114,7 +114,7 @@ int mailalertuser(char* userid) void sendResult(){ int i; FILE* fp; - time_t t; + time4_t t; fileheader_t header; struct stat st; char filename[512]; @@ -138,13 +138,13 @@ void sendResult(){ return; } - time(&t); + t = time(NULL); fprintf(fp, "作者: Ptt 站方統計\n" "標題: 小天使統計資料\n" "時間: %s\n" "\n現在全站小天使有 %d 位\n" "\n小主人人數最多的 %d 位小天使:\n", - ctime(&t), count, nReport); + Cdate(&t), count, nReport); for (i = 0; i < nReport; ++i) fprintf(fp, "%15s %5d 人\n", SHM->userid[list[i][1] - 1], list[i][0]); fprintf(fp, "\n現在男女皆收的小天使有 %d 位\n" |