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/edit/cust_credit.cgi | |
parent | 611624bc08f525d19e1bd548a7d005aa73a53145 (diff) |
proper use of date_format config for international date formats, RT#7009
Diffstat (limited to 'httemplate/edit/cust_credit.cgi')
-rwxr-xr-x | httemplate/edit/cust_credit.cgi | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index febf281f9..dc80847de 100755 --- a/httemplate/edit/cust_credit.cgi +++ b/httemplate/edit/cust_credit.cgi @@ -14,7 +14,7 @@ <TR> <TD ALIGN="right">Date</TD> - <TD BGCOLOR="#ffffff"><% time2str("%D",$_date) %></TD> + <TD BGCOLOR="#ffffff"><% time2str($date_format, $_date) %></TD> </TR> <TR> @@ -64,12 +64,10 @@ </FORM> </BODY> </HTML> -<%once> +<%init> my $conf = new FS::Conf; - -</%once> -<%init> +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Post credit'); |