[freeside-commits]
freeside/httemplate/view/cust_main misc.html, 1.8, 1.9
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Nov 15 22:20:40 PST 2006
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail:/tmp/cvs-serv21828/httemplate/view/cust_main
Modified Files:
misc.html
Log Message:
switch birthdate to DateTime
Index: misc.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/misc.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- misc.html 24 Oct 2006 18:26:38 -0000 1.8
+++ misc.html 16 Nov 2006 06:20:38 -0000 1.9
@@ -97,10 +97,15 @@
</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 ? time2str($date_format, $cust_main->birthdate) : '' %></TD>
+ <TD BGCOLOR="#ffffff"><% $cust_main->birthdate ? $dt->strftime($date_format) : '' %></TD>
</TR>
% }
More information about the freeside-commits
mailing list