It seems that Date::Manip::DateCalc in some versions require that
you parse in a ref for the error ref, passing in undef causes it
to not perform the date calculation. Parse in a ref, even if we
don't actually check it. Thanks to Ron Kellam for doing some
leg work on tracking this issue down.
return $next_time
if $next_time eq 'Never' || $next_time eq 'now';
- my $delta = DateCalc('now', $next_time, undef, 1);
+ my $err;
+ my $delta = DateCalc('now', $next_time, \$err, 1);
my $str = Delta_Format($delta, 0, '%hh Hours, %mv Minutes');
my $seconds = Delta_Format($delta, 0, '%sh');