summaryrefslogtreecommitdiff
path: root/httemplate/misc/delay_susp_pkg.html
diff options
context:
space:
mode:
authorivan <ivan>2010-03-08 10:57:06 +0000
committerivan <ivan>2010-03-08 10:57:06 +0000
commit06a85a88bfdb0d3fc79ee055eb8327658dfe63ab (patch)
tree239e526d182be4b3a8824811fde923fbd50621f5 /httemplate/misc/delay_susp_pkg.html
parent611624bc08f525d19e1bd548a7d005aa73a53145 (diff)
proper use of date_format config for international date formats, RT#7009
Diffstat (limited to 'httemplate/misc/delay_susp_pkg.html')
-rwxr-xr-xhttemplate/misc/delay_susp_pkg.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/misc/delay_susp_pkg.html b/httemplate/misc/delay_susp_pkg.html
index d4a6da18f..5d6a2bd09 100755
--- a/httemplate/misc/delay_susp_pkg.html
+++ b/httemplate/misc/delay_susp_pkg.html
@@ -25,7 +25,7 @@
<SCRIPT TYPE="text/javascript">
Calendar.setup({
inputField: "dun_date",
- ifFormat: "%m/%d/%Y",
+ ifFormat: "<% $date_format %>",
button: "dun_button",
align: "BR"
});
@@ -42,7 +42,10 @@
<%init>
-my $date = time2str("%m/%d/%Y", time);
+my %conf = new FS::Conf;
+my $date_format = $conf->config('date_format') || '%m/%d/%Y';
+
+my $date = time2str($date_format, time);
my($pkgnum);
if ( $cgi->param('error') ) {