1
1
* extfs/deba.in: Likewise.
* extfs/debd.in: Likewise.
* extfs/dpkg.in: Likewise.
Reported by Adam Byrtek <alpha@debian.org>
Этот коммит содержится в:
Pavel Roskin 2002-12-12 16:15:30 +00:00
родитель 4da228c21e
Коммит ec8375764b
5 изменённых файлов: 14 добавлений и 4 удалений

Просмотреть файл

@ -1,5 +1,11 @@
2002-12-12 Pavel Roskin <proski@gnu.org>
* extfs/apt.in: Fix Y2K bug.
* extfs/deba.in: Likewise.
* extfs/debd.in: Likewise.
* extfs/dpkg.in: Likewise.
Reported by Adam Byrtek <alpha@debian.org>
* extfs/patchfs.in: Print 4-digit year. If str2time is not
available, use current time, not 0.

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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