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

This commit is contained in:
Daniel O'Callaghan 1999-01-18 22:42:05 +00:00
parent ea5cc207d2
commit 9a578eb627
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42816

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);
}
}