move use statements to handler.pl, do not show 1/1/70 for new birthdates, and improve...
[freeside.git] / httemplate / view / cust_main / misc.html
index 121c052..9528db2 100644 (file)
   </TR>
 
 % if ( $conf->exists('cust_main-enable_birthdate') ) {
-%   eval "use DateTime;";
-%   die $@ if $@;
 %   my $dt = DateTime->from_epoch(epoch => $cust_main->birthdate,
 %                                  time_zone=>'floating',
 %                                 );
 
   <TR>
     <TD ALIGN="right">Date of Birth</TD>
-    <TD BGCOLOR="#ffffff"><% $cust_main->birthdate ? $dt->strftime($date_format) : '' %></TD>
+    <TD BGCOLOR="#ffffff"><% $cust_main->birthdate ne '' ? $dt->strftime($date_format) : '' %></TD>
   </TR>
 
 % }