projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6a7c4ac
)
fix bombing out on new DateTime
author
ivan
<ivan>
Wed, 22 Jul 2009 22:05:27 +0000
(22:05 +0000)
committer
ivan
<ivan>
Wed, 22 Jul 2009 22:05:27 +0000
(22:05 +0000)
httemplate/view/cust_main/misc.html
patch
|
blob
|
history
diff --git
a/httemplate/view/cust_main/misc.html
b/httemplate/view/cust_main/misc.html
index
060da87
..
91b304b
100644
(file)
--- 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') ) {
</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>
<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>
% }
</TR>
% }