Add 1900 to tm_year in sprinttime

This commit is contained in:
Wichert Akkerman 2000-01-11 14:41:09 +00:00
parent 9a8a37f2b2
commit 3ed6dc2491
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2000-01-11 Wichert Akkerman <wakkerma@debian.org>
* Add 1900 to tm_year in sprinttime
1999-12-24 Wichert Akkerman <wakkerma@debian.org>
* file.c: protect printstat64 with STAT64 instead of linux so we can

2
file.c
View File

@ -445,7 +445,7 @@ time_t t;
}
tmp = localtime(&t);
sprintf(buf, "%02d/%02d/%02d-%02d:%02d:%02d",
tmp->tm_year, tmp->tm_mon + 1, tmp->tm_mday,
tmp->tm_year + 1900, tmp->tm_mon + 1, tmp->tm_mday,
tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
return buf;
}