summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--htetc/handler.pl1
-rwxr-xr-xhttemplate/edit/process/cust_main.cgi2
2 files changed, 1 insertions, 2 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl
index 2d82673b6..cce39be1f 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -97,6 +97,7 @@ sub handler
use Date::Parse;
use Time::Local;
use Time::Duration;
+ use DateTime::Format::Strptime;
use Lingua::EN::Inflect qw(PL);
use Tie::IxHash;
use URI::Escape;
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi
index 789f29522..752bc9502 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -57,8 +57,6 @@
%}
%
%if ( $cgi->param('birthdate') && $cgi->param('birthdate') =~ /^([ 0-9\-\/]{0,10})$/ ) {
-% eval "use DateTime::Format::Strptime;";
-% die $@ if $@;
% my $conf = new FS::Conf;
% my $format = $conf->config('date_format') || "%m/%d/%Y";
% my $parser = DateTime::Format::Strptime->new(pattern => $format,