diff options
author | ivan <ivan> | 2009-07-22 22:05:27 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-07-22 22:05:27 +0000 |
commit | 17451727f5f483394ca894a48e8fa3abe91d5a2b (patch) | |
tree | c528042a19ec789c1154dd7eac2ad120e808211e /httemplate | |
parent | 6a7c4ac2fafc9d722c3ee4c5b75f1f8ca83b6c1a (diff) |
fix bombing out on new DateTime
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/view/cust_main/misc.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index 060da87dd..91b304b5d 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -85,13 +85,15 @@ </TR> % if ( $conf->exists('cust_main-enable_birthdate') ) { -% my $dt = DateTime->from_epoch(epoch => $cust_main->birthdate, -% time_zone=>'floating', -% ); +% my $dt = $cust_main->birthdate ne '' +% ? DateTime->from_epoch( 'epoch' => $cust_main->birthdate, +% 'time_zone' =>'floating', +% ) +% : ''; <TR> <TD ALIGN="right">Date of Birth</TD> - <TD BGCOLOR="#ffffff"><% $cust_main->birthdate ne '' ? $dt->strftime($date_format) : '' %></TD> + <TD BGCOLOR="#ffffff"><% $dt ? $dt->strftime($date_format) : '' %></TD> </TR> % } |