diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-03-13 18:27:37 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-03-13 18:27:37 -0700 |
commit | a9bb74be91910903f8813bc92af06df8368c5379 (patch) | |
tree | a5dfdd31663876802cc7dcaa9355d9f1f9a15041 /FS/FS/UI/Web.pm | |
parent | 80cf2cf71008a16ceec18d90711428ba148ca7b3 (diff) |
add time to payment report, RT#21061
Diffstat (limited to 'FS/FS/UI/Web.pm')
-rw-r--r-- | FS/FS/UI/Web.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index d6f183d..d31bbf0 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -32,15 +32,19 @@ sub parse_beginning_ending { my $beginning = 0; if ( $cgi->param($prefix.'begin') =~ /^(\d+)$/ ) { $beginning = $1; - } elsif ( $cgi->param($prefix.'beginning') =~ /^([ 0-9\-\/]{1,64})$/ ) { + } elsif ( $cgi->param($prefix.'beginning') =~ /^([ 0-9\-\/\:]{1,64})$/ ) { $beginning = parse_datetime($1) || 0; } my $ending = 4294967295; #2^32-1 if ( $cgi->param($prefix.'end') =~ /^(\d+)$/ ) { $ending = $1 - 1; - } elsif ( $cgi->param($prefix.'ending') =~ /^([ 0-9\-\/]{1,64})$/ ) { + } elsif ( $cgi->param($prefix.'ending') =~ /^([ 0-9\-\/\:]{1,64})$/ ) { #probably need an option to turn off the + 86399 + + #no, this should be add one day minus one second... + # 86399 is wrong twice a year when daylight savings time changes + # and leap seconds too but only a second rather than an hour.. $ending = parse_datetime($1) + 86399; } |