summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_credit.cgi
diff options
context:
space:
mode:
authorivan <ivan>2010-03-08 10:57:18 +0000
committerivan <ivan>2010-03-08 10:57:18 +0000
commitdc404e7519cf0ec3a0024a662c5e0c5566f9a194 (patch)
tree4f803ba340549798101094b822bd938eb70596cb /httemplate/edit/cust_credit.cgi
parent3402ff329fde97d6ac96723b5c2a4ed46ed2ce25 (diff)
proper use of date_format config for international date formats, RT#7009
Diffstat (limited to 'httemplate/edit/cust_credit.cgi')
-rwxr-xr-xhttemplate/edit/cust_credit.cgi8
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');