From 3ed6dc2491895369df1eb6b5284cc9de3520d8a0 Mon Sep 17 00:00:00 2001
From: Wichert Akkerman <wichert@deephackmode.org>
Date: Tue, 11 Jan 2000 14:41:09 +0000
Subject: [PATCH] Add 1900 to tm_year in sprinttime

---
 ChangeLog | 4 ++++
 file.c    | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index d72f3896..ad5b5b0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/file.c b/file.c
index 9ffb838f..f43d216a 100644
--- a/file.c
+++ b/file.c
@@ -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;
 }