if ( defined( $rule ) ) {
if ( $rule->{hardduedate} ) {
return (dt_from_string($rule->{hardduedate}, 'iso'),$rule->{hardduedatecompare});
my $hardduedate = dt_from_string($rule->{hardduedate}); # force scalar context on dt_from_string
return ( $hardduedate, $rule->{hardduedatecompare} );
} else {
return (undef, undef);
}
-