This question about Using an extension: Answered
DateTimePlugin does not process the
date=
parameter correctly.
The problem is in the way this plugin implements the _isNumber() routine.
sub _isNumber {
my ($n) = @_;
eval {
local $SIG{__WARN__} = sub { die $_[0] };
$n += 0;
};
if ($@) { return 0; }
else { return 1; }
}
This fails in my perl version: "This is perl 5, version 22, subversion 1 (v5.22.1) built for i686-linux-gnu-thread-multi-64int"
A working test would be:
sub _isNumber {
my ($n) = @_;
if( ($n =~ /^\d+$/) ) { return 1; }
else { return 0; }
}
But I chose to use
DateManipPlugin instead.
Suggest adding a comment in
DateTimePlugin documentation to mark its demise.
--
BramVanOosterhout - 02 Jan 2020