"19%02", tm.year -> "%d", tm.year+1900

This commit is contained in:
danny 1999-01-18 22:42:05 +00:00
parent 5377d91075
commit f719fbe423

View File

@ -455,8 +455,8 @@ cmd: USER SP username CRLF
struct tm *gmtime();
t = gmtime(&stbuf.st_mtime);
reply(213,
"19%02d%02d%02d%02d%02d%02d",
t->tm_year, t->tm_mon+1, t->tm_mday,
"%d%02d%02d%02d%02d%02d",
t->tm_year+1900, t->tm_mon+1, t->tm_mday,
t->tm_hour, t->tm_min, t->tm_sec);
}
}