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/quick-charge.html | |
parent | 3402ff329fde97d6ac96723b5c2a4ed46ed2ce25 (diff) |
proper use of date_format config for international date formats, RT#7009
Diffstat (limited to 'httemplate/edit/quick-charge.html')
-rw-r--r-- | httemplate/edit/quick-charge.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index c96fa6c81..64ad3a289 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -147,7 +147,7 @@ function bill_now_changed (what) { <SCRIPT TYPE="text/javascript"> Calendar.setup({ inputField: "start_date_text", - ifFormat: "%m/%d/%Y", + ifFormat: "<% $date_format %>", button: "start_date_button", align: "BR" }); @@ -250,6 +250,7 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('One-time charge'); my $conf = new FS::Conf; +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; $cgi->param('custnum') =~ /^(\d+)$/ or die 'illegal custnum'; my $custnum = $1; |