stray closing /TABLE in the no-ticket case
[freeside.git] / httemplate / elements / tr-fixed-date.html
1 <% include('tr-fixed.html', %opt ) %>
2 <%init>
3
4 my %opt;
5 if ( ref($_[0]) ) {
6   my $hashref = shift;
7   %opt = %$hashref;
8 } else {
9   %opt = @_;
10 }
11
12 my $value = $opt{'curr_value'} || $opt{'value'};
13
14 my $conf = new FS::Conf;
15 my $date_format = $opt{'format'} || $conf->config('date_format') || '%m/%d/%Y';
16
17 $opt{'formatted_value'} = $value > 0 ? time2str($date_format, $value) : '';
18
19 </%init>