diff options
author | ivan <ivan> | 2010-03-08 10:57:06 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-03-08 10:57:06 +0000 |
commit | 06a85a88bfdb0d3fc79ee055eb8327658dfe63ab (patch) | |
tree | 239e526d182be4b3a8824811fde923fbd50621f5 /httemplate/search | |
parent | 611624bc08f525d19e1bd548a7d005aa73a53145 (diff) |
proper use of date_format config for international date formats, RT#7009
Diffstat (limited to 'httemplate/search')
-rw-r--r-- | httemplate/search/report_prepaid_income.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/search/report_prepaid_income.html b/httemplate/search/report_prepaid_income.html index d707bd81b..04801beee 100644 --- a/httemplate/search/report_prepaid_income.html +++ b/httemplate/search/report_prepaid_income.html @@ -44,7 +44,7 @@ <SCRIPT TYPE="text/javascript"> Calendar.setup({ inputField: "date_text", - ifFormat: "%m/%d/%Y", + ifFormat: "<% $date_format %>", button: "date_button", align: "BR" }); @@ -58,4 +58,7 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); +my $conf = new FS::Conf; +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; + </%init> |