merging RT 4.0.6
[freeside.git] / httemplate / view / cust_main / custom_content / spouse_birthdate.html
1 <TABLE CLASS="fsinnerbox">
2   <& /elements/tr-td-label.html, 'label' => mt('Spouse Date of Birth') &>
3   <TD BGCOLOR="#ffffff"><% $dt ? $dt->strftime($date_format) : '' %></TD>
4 </TR>
5 </TABLE>
6 <%init>
7 my($cust_main) = @_;
8 my $conf = new FS::Conf;
9 my $date_format = ($conf->config('date_format') || "%m/%d/%Y");
10 my $dt = $cust_main->spouse_birthdate ne ''
11            ? DateTime->from_epoch( 'epoch'     => $cust_main->spouse_birthdate,
12                                    'time_zone' =>'floating',
13                                  )
14            : '';
15 </%init>