aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-10-09 12:20:51 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-10-09 12:20:51 +0000
commitfb2a0fd39639b5a7eefb654c59e6483a9235a561 (patch)
tree57aee5e9cfc3451315c76a9129e0ad863df5969f
parentbb3f415308add72dda19ac47ef860533a3150a69 (diff)
downloaduserdrake-fb2a0fd39639b5a7eefb654c59e6483a9235a561.tar
userdrake-fb2a0fd39639b5a7eefb654c59e6483a9235a561.tar.gz
userdrake-fb2a0fd39639b5a7eefb654c59e6483a9235a561.tar.bz2
userdrake-fb2a0fd39639b5a7eefb654c59e6483a9235a561.tar.xz
userdrake-fb2a0fd39639b5a7eefb654c59e6483a9235a561.zip
(TimeOfArray) fix retrieval of expiration date (brown paper bug #21662)
-rwxr-xr-xuserdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/userdrake b/userdrake
index dd414f6..07d829d 100755
--- a/userdrake
+++ b/userdrake
@@ -982,9 +982,9 @@ sub ConvTime {
}
sub TimeOfArray {
- my ($_reltime, $cm) = @_;
+ my ($reltime, $cm) = @_;
my $h; my %mth = (Jan => 1, Feb => 2, Mar => 3, Apr => 4, May => 5, Jun => 6, Jul => 7, Aug => 8, Sep => 9, Oct => 10, Nov => 11, Dec => 12);
- #my $t = localtime($reltime * 24 * 60 * 60) =~ /(\S+)\s+(\S+)\s+(\d+)\s+(\S+)\s+(\d+)/;
+ my $_t = localtime($reltime * 24 * 60 * 60) =~ /(\S+)\s+(\S+)\s+(\d+)\s+(\S+)\s+(\d+)/;
$h->{daystr} = $1; $h->{month} = $2; $h->{dayint} = $3; $h->{year} = $5;
$cm and $h->{month} = $mth{$2};
$h;