diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-03-19 15:15:14 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-03-19 15:15:14 -0700 |
commit | c917013f3e2232be3c3303e8cabef365096da979 (patch) | |
tree | 62e0c40e57855d14456ca3e7e5e607316dcb0fee /FS/FS/UI | |
parent | bc193b14d10f81548a659d52f68b58fa7599b646 (diff) |
fix report-cust_pay-select_time RT#21061 vs. daylight savings fixes RT#21879
Diffstat (limited to 'FS/FS/UI')
-rw-r--r-- | FS/FS/UI/Web.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 2e6d482..7926808 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -40,7 +40,8 @@ sub parse_beginning_ending { if ( $cgi->param($prefix.'end') =~ /^(\d+)$/ ) { $ending = $1 - 1; } elsif ( $cgi->param($prefix.'ending') =~ /^([ 0-9\-\/\:]{1,64})$/ ) { - $ending = day_end( parse_datetime($1) ); + $ending = parse_datetime($1); + $ending = day_end($ending) unless $ending =~ /:/; } ( $beginning, $ending ); |