[freeside-commits] freeside/httemplate/misc delay_susp_pkg.html, 1.3, 1.4 cancel_pkg.html, 1.9, 1.10 order_pkg.html, 1.12, 1.13
Ivan,,,
ivan at wavetail.420.am
Mon Mar 8 02:57:08 PST 2010
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.357, 1.358 cust_bill.pm, 1.277, 1.278
- Next message: [freeside-commits] freeside/httemplate/edit cust_pay.cgi, 1.29, 1.30 quick-charge.html, 1.17, 1.18 REAL_cust_pkg.cgi, 1.22, 1.23 cust_credit.cgi, 1.27, 1.28 cust_refund.cgi, 1.9, 1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv28949/httemplate/misc
Modified Files:
delay_susp_pkg.html cancel_pkg.html order_pkg.html
Log Message:
proper use of date_format config for international date formats, RT#7009
Index: delay_susp_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/delay_susp_pkg.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- delay_susp_pkg.html 21 Jun 2009 15:21:31 -0000 1.3
+++ delay_susp_pkg.html 8 Mar 2010 10:57:06 -0000 1.4
@@ -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') ) {
Index: cancel_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/cancel_pkg.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -d -r1.9 -r1.10
--- cancel_pkg.html 27 Jul 2009 19:51:16 -0000 1.9
+++ cancel_pkg.html 8 Mar 2010 10:57:06 -0000 1.10
@@ -31,7 +31,7 @@
<SCRIPT TYPE="text/javascript">
Calendar.setup({
inputField: "expire_date",
- ifFormat: "%m/%d/%Y",
+ ifFormat: "<% $date_format %>",
button: "expire_button",
align: "BR"
});
@@ -58,7 +58,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, $reasonnum);
if ( $cgi->param('error') ) {
Index: order_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/order_pkg.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -w -d -r1.12 -r1.13
--- order_pkg.html 5 Feb 2010 02:39:31 -0000 1.12
+++ order_pkg.html 8 Mar 2010 10:57:06 -0000 1.13
@@ -60,7 +60,7 @@
<SCRIPT TYPE="text/javascript">
Calendar.setup({
inputField: "start_date_text",
- ifFormat: "%m/%d/%Y",
+ ifFormat: "<% $date_format %>",
button: "start_date_button",
align: "BR"
});
@@ -107,6 +107,7 @@
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;
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.357, 1.358 cust_bill.pm, 1.277, 1.278
- Next message: [freeside-commits] freeside/httemplate/edit cust_pay.cgi, 1.29, 1.30 quick-charge.html, 1.17, 1.18 REAL_cust_pkg.cgi, 1.22, 1.23 cust_credit.cgi, 1.27, 1.28 cust_refund.cgi, 1.9, 1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list