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/misc/order_pkg.html | |
parent | 3402ff329fde97d6ac96723b5c2a4ed46ed2ce25 (diff) |
proper use of date_format config for international date formats, RT#7009
Diffstat (limited to 'httemplate/misc/order_pkg.html')
-rw-r--r-- | httemplate/misc/order_pkg.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index a7571ca58..85573e6b4 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -54,7 +54,7 @@ <SCRIPT TYPE="text/javascript"> Calendar.setup({ inputField: "start_date_text", - ifFormat: "%m/%d/%Y", + ifFormat: "<% $date_format %>", button: "start_date_button", align: "BR" }); @@ -90,6 +90,7 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Order customer package'); my $conf = new FS::Conf; +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; $cgi->param('custnum') =~ /^(\d+)$/ or die "no custnum"; my $custnum = $1; |