From dc404e7519cf0ec3a0024a662c5e0c5566f9a194 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 8 Mar 2010 10:57:18 +0000 Subject: proper use of date_format config for international date formats, RT#7009 --- httemplate/edit/cust_refund.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'httemplate/edit/cust_refund.cgi') diff --git a/httemplate/edit/cust_refund.cgi b/httemplate/edit/cust_refund.cgi index 34e3812f3..59417b4c4 100755 --- a/httemplate/edit/cust_refund.cgi +++ b/httemplate/edit/cust_refund.cgi @@ -41,7 +41,7 @@ - Date<% time2str("%D",$cust_pay->_date) %> + Date<% time2str($date_format, $cust_pay->_date) %> @@ -93,7 +93,7 @@ Date - <% time2str("%D",$_date) %> + <% time2str($date_format, $_date) %> @@ -134,6 +134,8 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Refund payment'); my $conf = new FS::Conf; +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; + my $custnum = $cgi->param('custnum'); my $refund = $cgi->param('refund'); my $payby = $cgi->param('payby'); -- cgit v1.2.1