fix date parsing when using international dates (package date edit), RT#8027
[freeside.git] / httemplate / edit / process / quick-cust_pkg.cgi
index 7a0f082..7066a74 100644 (file)
@@ -50,7 +50,7 @@ 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'))
                        : ''
                    ),
   'refnum'      => $refnum,