fix date parsing when using international dates (package date edit), RT#8027
[freeside.git] / httemplate / edit / process / quick-cust_pkg.cgi
index 57c696e..7066a74 100644 (file)
@@ -49,6 +49,10 @@ my $locationnum = $1;
 my $cust_pkg = new FS::cust_pkg {
   'custnum'     => $custnum,
   'pkgpart'     => $pkgpart,
+  'start_date'  => ( scalar($cgi->param('start_date'))
+                       ? parse_datetime($cgi->param('start_date'))
+                       : ''
+                   ),
   'refnum'      => $refnum,
   'locationnum' => $locationnum,
 };