X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fsqlradius.cgi;h=9cc5958ee07c82f686c5904f22dd06f74c2be5dd;hp=3c5046bea0e36e8db0a53b3680c3e43fd38b53ee;hb=eb4cf5563939a08eba1a10d8c2a8f52205f6535b;hpb=049da6c538c952f938af4544a07c688b89c26a17 diff --git a/httemplate/search/sqlradius.cgi b/httemplate/search/sqlradius.cgi index 3c5046bea..9cc5958ee 100644 --- a/httemplate/search/sqlradius.cgi +++ b/httemplate/search/sqlradius.cgi @@ -123,9 +123,9 @@ my $time_format = sub { my $time = shift; - $time > 0 - ? time2str('%T%P %a %b %o %Y', $time ) - : ' '; + return ' ' if $time == 0; + my $pretty = time2str('%T%P %a %b %o %Y', $time ); + $pretty =~ s/ (\d)(st|dn|rd|th)/ $1$2/; }; my $duration_format = sub { @@ -223,7 +223,7 @@ <% foreach my $field ( keys %fields ) { %> <%= $fields{$field}->{name} %>
- <%= $fields{$field}->{attrib} %> + <%= $fields{$field}->{attrib} %> <% } %>