<% include('tr-fixed.html', %opt ) %> <%init> my %opt; if ( ref($_[0]) ) { my $hashref = shift; %opt = %$hashref; } else { %opt = @_; } my $value = $opt{'curr_value'} || $opt{'value'}; my $conf = new FS::Conf; my $date_format = $opt{'format'} || $conf->config('date_format') || '%m/%d/%Y'; $opt{'formatted_value'} = $value > 0 ? time2str($date_format, $value) : '';