[freeside-commits] freeside/httemplate/edit cust_pay.cgi, 1.29.2.1, 1.29.2.2 REAL_cust_pkg.cgi, 1.20.2.4, 1.20.2.5

Ivan,,, ivan at wavetail.420.am
Fri Apr 9 01:18:39 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv7411/httemplate/edit

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	cust_pay.cgi REAL_cust_pkg.cgi 
Log Message:
fix date parsing when using international dates (package date edit), RT#8027

Index: REAL_cust_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/REAL_cust_pkg.cgi,v
retrieving revision 1.20.2.4
retrieving revision 1.20.2.5
diff -u -w -d -r1.20.2.4 -r1.20.2.5
--- REAL_cust_pkg.cgi	9 Mar 2010 08:05:40 -0000	1.20.2.4
+++ REAL_cust_pkg.cgi	9 Apr 2010 08:18:36 -0000	1.20.2.5
@@ -187,9 +187,9 @@
   $cust_pkg = qsearchs('cust_pkg',{'pkgnum'=>$pkgnum});
   die "No package!" unless $cust_pkg;
 
-  foreach my $col (qw( setup last_bill bill adjourn expire )) {
+  foreach my $col (qw( start_date setup last_bill bill adjourn expire )) {
     my $value = $cgi->param($col);
-    $cust_pkg->set( $col, $value ? str2time($value) : '' );
+    $cust_pkg->set( $col, $value ? parse_datetime($value) : '' );
   }
 
 } else {

Index: cust_pay.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_pay.cgi,v
retrieving revision 1.29.2.1
retrieving revision 1.29.2.2
diff -u -w -d -r1.29.2.1 -r1.29.2.2
--- cust_pay.cgi	8 Mar 2010 10:57:17 -0000	1.29.2.1
+++ cust_pay.cgi	9 Apr 2010 08:18:36 -0000	1.29.2.2
@@ -113,7 +113,7 @@
   $paid     = $cgi->param('paid');
   $payby    = $cgi->param('payby');
   $payinfo  = $cgi->param('payinfo');
-  $_date    = $cgi->param('_date') ? str2time($cgi->param('_date')) : time;
+  $_date    = $cgi->param('_date') ? parse_datetime($cgi->param('_date')) : time;
 } elsif ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
   $link     = $cgi->param('popup') ? 'popup' : 'custnum';
   $linknum  = $1;



More information about the freeside-commits mailing list