[freeside-commits] freeside/httemplate/view/cust_main misc.html, 1.9, 1.10

Jeff Finucane,420,, jeff at wavetail.420.am
Thu Dec 14 21:29:51 PST 2006


Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail:/tmp/cvs-serv18104/httemplate/view/cust_main

Modified Files:
	misc.html 
Log Message:
move use statements to handler.pl, do not show 1/1/70 for new birthdates, and improve error handling

Index: misc.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/misc.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- misc.html	16 Nov 2006 06:20:38 -0000	1.9
+++ misc.html	15 Dec 2006 05:29:48 -0000	1.10
@@ -97,15 +97,13 @@
   </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>
 
 % }



More information about the freeside-commits mailing list