diff options
author | ivan <ivan> | 2006-12-15 00:56:12 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-12-15 00:56:12 +0000 |
commit | ba1f19e48ec2f2ac293b07a41042de59e744db1e (patch) | |
tree | fc2ede96ce8488d7b7e68fcbbc40c859f1d3a1b9 | |
parent | 1163d4d5044ca487ae9cf2176346e297979aa1e1 (diff) |
add DateTime as a proper rather than hidden dependency
-rw-r--r-- | htetc/handler.pl | 1 | ||||
-rwxr-xr-x | httemplate/edit/process/cust_main.cgi | 2 |
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, |