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
/
delay_susp_pkg.html
diff --git
a/httemplate/misc/delay_susp_pkg.html
b/httemplate/misc/delay_susp_pkg.html
index
d4a6da1
..
5d6a2bd
100755
(executable)
--- 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",
<SCRIPT TYPE="text/javascript">
Calendar.setup({
inputField: "dun_date",
- ifFormat: "
%m/%d/%Y
",
+ ifFormat: "
<% $date_format %>
",
button: "dun_button",
align: "BR"
});
button: "dun_button",
align: "BR"
});
@@
-42,7
+42,10
@@
<%init>
<%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') ) {
my($pkgnum);
if ( $cgi->param('error') ) {