From 92a3d687fd3e73b0f45b7ff1a73dcde137983171 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 11 Dec 2002 21:19:43 +0000 Subject: [PATCH] * extfs/apt.in: Add 1 to the month number. Perl localtime() uses range 0..11 while extfs expects range 1..12. * extfs/deba.in: Likewise. * extfs/debd.in: Likewise. * extfs/dpkg.in: Likewise. --- vfs/ChangeLog | 6 ++++++ vfs/extfs/apt.in | 2 +- vfs/extfs/deba.in | 2 +- vfs/extfs/debd.in | 2 +- vfs/extfs/dpkg.in | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 5ed7d85b4..4a73bdafd 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,5 +1,11 @@ 2002-12-11 Adam Byrtek + * extfs/apt.in: Add 1 to the month number. Perl localtime() + uses range 0..11 while extfs expects range 1..12. + * extfs/deba.in: Likewise. + * extfs/debd.in: Likewise. + * extfs/dpkg.in: Likewise. + * extfs/audio: Move ... * extfs/audio.in: ... here. Add CDDB support. * extfs/Makefile.am: Adjust for the above. diff --git a/vfs/extfs/apt.in b/vfs/extfs/apt.in index 82c9712ee..66495797b 100644 --- a/vfs/extfs/apt.in +++ b/vfs/extfs/apt.in @@ -11,7 +11,7 @@ sub bt my ($dt) = @_; my (@time); @time = localtime($dt); - $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4], $time[3], $time[5], $time[2], $time[1]; + $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4]+1, $time[3], $time[5], $time[2], $time[1]; return $bt; } diff --git a/vfs/extfs/deba.in b/vfs/extfs/deba.in index 1aecb2289..5e5746db3 100644 --- a/vfs/extfs/deba.in +++ b/vfs/extfs/deba.in @@ -11,7 +11,7 @@ sub bt my ($dt) = @_; my (@time); @time = localtime($dt); - $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4], $time[3], $time[5], $time[2], $time[1]; + $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4]+1, $time[3], $time[5], $time[2], $time[1]; return $bt; } diff --git a/vfs/extfs/debd.in b/vfs/extfs/debd.in index d108e65aa..1c52d9831 100644 --- a/vfs/extfs/debd.in +++ b/vfs/extfs/debd.in @@ -11,7 +11,7 @@ sub bt my ($dt) = @_; my (@time); @time = localtime($dt); - $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4], $time[3], $time[5], $time[2], $time[1]; + $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4]+1, $time[3], $time[5], $time[2], $time[1]; return $bt; } diff --git a/vfs/extfs/dpkg.in b/vfs/extfs/dpkg.in index a3cd0438f..be5e04b32 100644 --- a/vfs/extfs/dpkg.in +++ b/vfs/extfs/dpkg.in @@ -11,7 +11,7 @@ sub bt my ($dt) = @_; my (@time); @time = localtime($dt); - $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4], $time[3], $time[5], $time[2], $time[1]; + $bt = sprintf "%02d-%02d-%02d %02d:%02d", $time[4]+1, $time[3], $time[5], $time[2], $time[1]; return $bt; }