diff options
author | ivan <ivan> | 2010-03-08 10:57:18 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-03-08 10:57:18 +0000 |
commit | dc404e7519cf0ec3a0024a662c5e0c5566f9a194 (patch) | |
tree | 4f803ba340549798101094b822bd938eb70596cb /httemplate/edit/cust_pay.cgi | |
parent | 3402ff329fde97d6ac96723b5c2a4ed46ed2ce25 (diff) |
proper use of date_format config for international date formats, RT#7009
Diffstat (limited to 'httemplate/edit/cust_pay.cgi')
-rwxr-xr-x | httemplate/edit/cust_pay.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index 07e51989e..a6b73b13a 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -26,7 +26,7 @@ Payment <TR> <TD ALIGN="right">Date</TD> <TD COLSPAN=2> - <INPUT TYPE="text" NAME="_date" ID="_date_text" VALUE="<% time2str("%m/%d/%Y %r",$_date) %>"> + <INPUT TYPE="text" NAME="_date" ID="_date_text" VALUE="<% time2str($date_format.' %r',$_date) %>"> <IMG SRC="../images/calendar.png" ID="_date_button" STYLE="cursor: pointer" TITLE="Select date"> </TD> </TR> @@ -34,7 +34,7 @@ Payment <SCRIPT TYPE="text/javascript"> Calendar.setup({ inputField: "_date_text", - ifFormat: "%m/%d/%Y", + ifFormat: "<% $date_format %>", button: "_date_button", align: "BR" }); @@ -100,7 +100,8 @@ Payment my $conf = new FS::Conf; -my $money_char = $conf->config('money_char') || '$'; +my $money_char = $conf->config('money_char') || '$'; +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Post payment'); |