From ba1f19e48ec2f2ac293b07a41042de59e744db1e Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 15 Dec 2006 00:56:12 +0000 Subject: [PATCH] add DateTime as a proper rather than hidden dependency --- htetc/handler.pl | 1 + httemplate/edit/process/cust_main.cgi | 2 -- 2 files changed, 1 insertion(+), 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, -- 2.11.0