summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorjeff <jeff>2006-12-15 05:29:48 +0000
committerjeff <jeff>2006-12-15 05:29:48 +0000
commit02b9c53fb85b0a87d959e140dc30ae21cccb0902 (patch)
tree56d1edfd2ee7a2f92fe830b8e55a6db84d214b0f /httemplate/view
parentba1f19e48ec2f2ac293b07a41042de59e744db1e (diff)
move use statements to handler.pl, do not show 1/1/70 for new birthdates, and improve error handling
Diffstat (limited to 'httemplate/view')
-rw-r--r--httemplate/view/cust_main/misc.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html
index 121c0522a..9528db243 100644
--- a/httemplate/view/cust_main/misc.html
+++ b/httemplate/view/cust_main/misc.html
@@ -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>
% }