summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc
diff options
context:
space:
mode:
authordanny <danny@FreeBSD.org>1999-01-18 22:42:05 +0000
committerdanny <danny@FreeBSD.org>1999-01-18 22:42:05 +0000
commit9926c0023b7e486737f2d48abefc02198a2bc725 (patch)
tree8de50ec26a48307f1415a790ecfbcf5fa3d136d7 /usr.bin/yacc
parent43ca38ea1c894104e67960ae874adf4385926201 (diff)
downloadFreeBSD-src-9926c0023b7e486737f2d48abefc02198a2bc725.zip
FreeBSD-src-9926c0023b7e486737f2d48abefc02198a2bc725.tar.gz
"19%02", tm.year -> "%d", tm.year+1900
Diffstat (limited to 'usr.bin/yacc')
-rw-r--r--usr.bin/yacc/test/ftp.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/yacc/test/ftp.y b/usr.bin/yacc/test/ftp.y
index a9ee9cd..9a1e525 100644
--- a/usr.bin/yacc/test/ftp.y
+++ b/usr.bin/yacc/test/ftp.y
@@ -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);
}
}
OpenPOWER on IntegriCloud