-% }
-
-% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) {
-% my $dt = $cust_main->spouse_birthdate ne ''
-% ? DateTime->from_epoch( 'epoch' => $cust_main->spouse_birthdate,
-% 'time_zone' =>'floating',
-% )
-% : '';
+% if ( $conf->exists('cust_main-enable_spouse')
+% and $cust_main->spouse_birthdate ) {
+% my $dt = DateTime->from_epoch(
+% 'epoch' => $cust_main->spouse_birthdate,
+% 'time_zone' =>'floating'
+% );