fix date parsing when using international dates (package date edit), RT#8027
[freeside.git] / httemplate / edit / process / quick-cust_pkg.cgi
index a095892..2fde17f 100644 (file)
@@ -54,9 +54,10 @@ my $cust_pkg = new FS::cust_pkg {
   'custnum'              => $custnum,
   'pkgpart'              => $pkgpart,
   'start_date'           => ( scalar($cgi->param('start_date'))
-                                ? str2time($cgi->param('start_date'))
+                                ? parse_datetime($cgi->param('start_date'))
                                 : ''
                             ),
+  'no_auto'              => scalar($cgi->param('no_auto')),
   'refnum'               => $refnum,
   'locationnum'          => $locationnum,
   'discountnum'          => $discountnum,