Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the DateManip CPAN distribution.

Report information
The Basics
Id: 27568
Status: resolved
Priority: 0/
Queue: DateManip

Owner: Nobody in particular
Requestors: daniel [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Fix for "Use of uninitialized value in substitution (s///)", if "date" is not available
Date: Wed, 13 Jun 2007 21:44:44 +0200
To: bug-DateManip [...]
From: dAniel hAhler <daniel [...]>
Download (untitled) / with headers
text/plain 1.2k
Hi, if the "date" command is not available, e.g. in a chroot environment, you'll get the following notices: Use of uninitialized value in substitution (s///) at /usr/share/perl5/Date/ line 3603. Use of uninitialized value in substitution (s///) at /usr/share/perl5/Date/ line 3605. The following patch fixes this: # diff -u /usr/share/perl5/Date/ /var/www/usr/share/perl5/Date/ --- /usr/share/perl5/Date/ 2007-06-13 20:28:05.000000000 +0200 +++ /var/www/usr/share/perl5/Date/ 2007-06-13 21:31:42.000000000 +0200 @@ -3550,7 +3550,7 @@ $tz=(split(/\s+/,$tz))[4]; } } - push(@tz,$tz); + push(@tz,$tz) if defined $tz; } else { # We need to satisfy taint checking, but also look in all the # directories in @DatePath. @@ -3564,7 +3564,7 @@ chomp($tz); $tz=(split(/\s+/,$tz))[4]; } - push(@tz,$tz); + push(@tz,$tz) if defined $tz; } } Additionally I've seen that e.g. "Europe/Berlin" cannot get parsed by Date_TimeZone; it appears to be not in the list with e.g. "US/Pacific". Now I've installed the "date" binary in the chroot and this works out. I've come apart Date::Manip, because munin-cgi-graph (from the "munin" package) uses it. Thank you.
Download signature.asc
application/pgp-signature 189b

Message body not shown because it is not plain text.

Both of these issues are resolved in the 6.xx releases.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to