projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
proper use of date_format config for international date formats, RT#7009
[freeside.git]
/
httemplate
/
misc
/
order_pkg.html
diff --git
a/httemplate/misc/order_pkg.html
b/httemplate/misc/order_pkg.html
index
864e832
..
666099a
100644
(file)
--- a/
httemplate/misc/order_pkg.html
+++ b/
httemplate/misc/order_pkg.html
@@
-60,7
+60,7
@@
<SCRIPT TYPE="text/javascript">
Calendar.setup({
inputField: "start_date_text",
<SCRIPT TYPE="text/javascript">
Calendar.setup({
inputField: "start_date_text",
- ifFormat: "
%m/%d/%Y
",
+ ifFormat: "
<% $date_format %>
",
button: "start_date_button",
align: "BR"
});
button: "start_date_button",
align: "BR"
});
@@
-107,6
+107,7
@@
die "access denied"
unless $curuser->access_right('Order customer package');
my $conf = new FS::Conf;
unless $curuser->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;
$cgi->param('custnum') =~ /^(\d+)$/ or die "no custnum";
my $custnum = $1;