diff options
author | jeff <jeff> | 2006-11-16 06:20:38 +0000 |
---|---|---|
committer | jeff <jeff> | 2006-11-16 06:20:38 +0000 |
commit | 7c1d5f4ce778b4ab56301a042076e7c1dce46152 (patch) | |
tree | 5043578159426a7f2b71f4dc08a1ce481efffae7 /httemplate/view/cust_main/misc.html | |
parent | 4fc89f725b1ef07a6f1687af0ddeb83988d493c1 (diff) |
switch birthdate to DateTime
Diffstat (limited to 'httemplate/view/cust_main/misc.html')
-rw-r--r-- | httemplate/view/cust_main/misc.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index 414ef44a8..121c0522a 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -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> % } |