diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 6c4fa9a7c..72cea0d34 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,5 +1,11 @@ 2002-12-12 Pavel Roskin + * extfs/apt.in: Fix Y2K bug. + * extfs/deba.in: Likewise. + * extfs/debd.in: Likewise. + * extfs/dpkg.in: Likewise. + Reported by Adam Byrtek + * extfs/patchfs.in: Print 4-digit year. If str2time is not available, use current time, not 0. diff --git a/vfs/extfs/apt.in b/vfs/extfs/apt.in index 80d70fa80..63ad807f3 100644 --- a/vfs/extfs/apt.in +++ b/vfs/extfs/apt.in @@ -11,7 +11,8 @@ sub bt my ($dt) = @_; my (@time); @time = localtime($dt); - $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4]+1, $time[3], $time[5], $time[2], $time[1]; + $bt = sprintf "%02d-%02d-%d %02d:%02d", $time[4] + 1, $time[3], + $time[5] + 1900, $time[2], $time[1]; return $bt; } diff --git a/vfs/extfs/deba.in b/vfs/extfs/deba.in index 5e5746db3..ed7b3c73d 100644 --- a/vfs/extfs/deba.in +++ b/vfs/extfs/deba.in @@ -11,7 +11,8 @@ sub bt my ($dt) = @_; my (@time); @time = localtime($dt); - $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4]+1, $time[3], $time[5], $time[2], $time[1]; + $bt = sprintf "%02d-%02d-%d %02d:%02d", $time[4] + 1, $time[3], + $time[5] + 1900, $time[2], $time[1]; return $bt; } diff --git a/vfs/extfs/debd.in b/vfs/extfs/debd.in index 1c52d9831..ad8e4da64 100644 --- a/vfs/extfs/debd.in +++ b/vfs/extfs/debd.in @@ -11,7 +11,8 @@ sub bt my ($dt) = @_; my (@time); @time = localtime($dt); - $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4]+1, $time[3], $time[5], $time[2], $time[1]; + $bt = sprintf "%02d-%02d-%d %02d:%02d", $time[4] + 1, $time[3], + $time[5] + 1900, $time[2], $time[1]; return $bt; } diff --git a/vfs/extfs/dpkg.in b/vfs/extfs/dpkg.in index be5e04b32..a39ec7625 100644 --- a/vfs/extfs/dpkg.in +++ b/vfs/extfs/dpkg.in @@ -11,7 +11,8 @@ sub bt my ($dt) = @_; my (@time); @time = localtime($dt); - $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4]+1, $time[3], $time[5], $time[2], $time[1]; + $bt = sprintf "%02d-%02d-%d %02d:%02d", $time[4] + 1, $time[3], + $time[5] + 1900, $time[2], $time[1]; return $bt; }