summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhttemplate/edit/process/cust_main.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi
index 1aaed2890..33f7bb895 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -53,6 +53,10 @@
% );
%}
%
+%if ( $cgi->param('birthdate') && $cgi->param('birthdate') =~ /^([ 0-9\-\/]{0,10})$/ ) {
+% $new->setfield('birthdate', str2time($1));
+%}
+%
%$new->setfield('paid', $cgi->param('paid') )
% if $cgi->param('paid');
%