From a325c7e100f4cd81be447eb430f5b1b32e0d806f Mon Sep 17 00:00:00 2001 From: wens Date: Tue, 25 Jan 2005 04:45:31 +0000 Subject: more ctime to ctime4 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2431 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/edit.c | 2 +- mbbsd/mbbsd.c | 2 +- util/r2014convert.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 67dfccc5..4eadc280 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1838,7 +1838,7 @@ vedit(char *fpath, int saveheader, int *islocal) /* log_file("etc/illegal_money", LOG_CREAT | LOG_VF, "\033[1;33;46m%s \033[37;45m 用機器人發表文章 \033[37m %s\033[m\n", - cuser.userid, ctime(&now)); + cuser.userid, ctime4(&now)); post_violatelaw(cuser.userid, "Ptt系統警察", "用機器人發表文章", "強制離站"); abort_bbs(0); diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index a616da9e..34b78e06 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -764,7 +764,7 @@ setup_utmp(int mode) setuserfile(buf, "remoteuser"); strlcpy(remotebuf, fromhost, sizeof(fromhost)); - strcat(remotebuf, ctime(&now)); + strcat(remotebuf, ctime4(&now)); remotebuf[strlen(remotebuf) - 1] = 0; add_distinct(buf, remotebuf); #endif diff --git a/util/r2014convert.c b/util/r2014convert.c index ca91f4c8..14de742b 100644 --- a/util/r2014convert.c +++ b/util/r2014convert.c @@ -21,7 +21,7 @@ int main(){ } } else { time4_t t = (time4_t)time(NULL); - char* str = ctime(&t); + char* str = ctime4(&t); write(orig_fd, str, strlen(str)); } -- cgit v1.2.3