diff options
author | ivan <ivan> | 2009-12-20 01:02:25 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-20 01:02:25 +0000 |
commit | f4b44f216c812b5419df17e3c08aed99e0911646 (patch) | |
tree | dc08d459babe2544899d4dde386e08430713feb7 /httemplate/view | |
parent | 730bd839bec9bffe085dbf204b8fab4e31b2a0a7 (diff) |
fix cust_main-packages-years, RT#6798
Diffstat (limited to 'httemplate/view')
-rwxr-xr-x | httemplate/view/cust_main/packages.html | 3 | ||||
-rw-r--r-- | httemplate/view/cust_main/payment_history.html | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index bd056a31c..31aa262f4 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -217,8 +217,7 @@ sub get_packages { unless ( $cgi->param('showoldpackages') ) { my $years = $conf->config('cust_main-packages-years') || 2; - my $seconds = 31556926; #60*60*24*365.2422 is close enough - my $then = time - $seconds; + my $then = time - $years * 31556926; #60*60*24*365.2422 is close enough my %hide = ( 'cancelled' => 'cancel', 'one-time charge' => 'setup', diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 8208400bb..56a2c4dde 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -226,7 +226,7 @@ %my %target = (); % %my $years = $conf->config('payment_history-years') || 2; -%my $older_than = time - $years * 31556736; #60*60*24*365.24 +%my $older_than = time - $years * 31556926; #60*60*24*365.2422 %my $hidden = 0; %my $seen = 0; %my $old_history = 0; |