From: ivan Date: Mon, 15 Aug 2005 01:55:43 +0000 (+0000) Subject: fix brainfart parsing end dates, closes: Bug#1248 X-Git-Tag: BEFORE_FINAL_MASONIZE~421 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=7af914081daa5896f1b0d69de0f48af6978f1fe4 fix brainfart parsing end dates, closes: Bug#1248 --- diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 85b85081a..18e841e83 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -24,7 +24,7 @@ sub parse_beginning_ending { $ending = $1 - 1; } elsif ( $cgi->param('ending') =~ /^([ 0-9\-\/]{1,64})$/ ) { #probably need an option to turn off the + 86399 - my $ending = str2time($1) + 86399; + $ending = str2time($1) + 86399; } ( $beginning, $ending );