diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-07-03 18:51:51 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-07-03 18:51:51 -0700 |
commit | 81978af92ecdaaefeff5156d9ab3b4f99586df1c (patch) | |
tree | 19a4e6bbcc6648c506c48e304418001294ed7485 /httemplate/elements/tr-fixed-date.html | |
parent | 7abce2207dbee012fd442940dc42070f45ef8a16 (diff) |
quotations, RT#16996
Diffstat (limited to 'httemplate/elements/tr-fixed-date.html')
-rw-r--r-- | httemplate/elements/tr-fixed-date.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/httemplate/elements/tr-fixed-date.html b/httemplate/elements/tr-fixed-date.html new file mode 100644 index 000000000..716e5ceb8 --- /dev/null +++ b/httemplate/elements/tr-fixed-date.html @@ -0,0 +1,13 @@ +<% include('tr-fixed.html', %opt ) %> +<%init> + +my %opt = @_; + +my $value = $opt{'curr_value'} || $opt{'value'}; + +my $conf = new FS::Conf; +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; + +$opt{'formatted_value'} = time2str($date_format, $value); + +</%init> |