diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-08 15:59:32 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-08 15:59:32 +0800 |
commit | 133c8925067a703dfef58607fd2ca636fa3b2922 (patch) | |
tree | deb7f25fdecaaba2f7dc6c57023fb97a79325ca8 /mbbsd/voteboard.c | |
parent | ba4849655123ccf17feb52aea447a4b52a114928 (diff) | |
download | pttbbs-133c8925067a703dfef58607fd2ca636fa3b2922.tar pttbbs-133c8925067a703dfef58607fd2ca636fa3b2922.tar.gz pttbbs-133c8925067a703dfef58607fd2ca636fa3b2922.tar.bz2 pttbbs-133c8925067a703dfef58607fd2ca636fa3b2922.tar.lz pttbbs-133c8925067a703dfef58607fd2ca636fa3b2922.tar.xz pttbbs-133c8925067a703dfef58607fd2ca636fa3b2922.tar.zst pttbbs-133c8925067a703dfef58607fd2ca636fa3b2922.zip |
- (internal) replace ctime4 by Cdate, prevent developer confused by the the trailing '\n'.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4278 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/voteboard.c')
-rw-r--r-- | mbbsd/voteboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c index a247095e..096ecebf 100644 --- a/mbbsd/voteboard.c +++ b/mbbsd/voteboard.c @@ -152,7 +152,7 @@ do_voteboardreply(const fileheader_t * fhdr) } if (!endtime) { now += 14 * 24 * 60 * 60; - fprintf(fo, "連署結束時間: (%d)%s\n", now, ctime4(&now)); + fprintf(fo, "連署結束時間: (%d)%s\n\n", now, Cdate(&now)); now -= 14 * 24 * 60 * 60; } fputs(genbuf, fo); @@ -364,8 +364,8 @@ do_voteboard(int type) now += 14 * 24 * 60 * 60; snprintf(topic, sizeof(topic), "(%d)", now); strcat(genbuf, topic); - strcat(genbuf, ctime4(&now)); - strcat(genbuf, "\n"); + strcat(genbuf, Cdate(&now)); + strcat(genbuf, "\n\n"); now -= 14 * 24 * 60 * 60; strcat(genbuf, "----------支持----------\n"); strcat(genbuf, "----------反對----------\n"); |