projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
579f53d
)
torrus, RT#10574
author
ivan
<ivan>
Mon, 24 Jan 2011 00:46:13 +0000
(
00:46
+0000)
committer
ivan
<ivan>
Mon, 24 Jan 2011 00:46:13 +0000
(
00:46
+0000)
FS/FS/part_pkg/torrus_Common.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/torrus_Common.pm
b/FS/FS/part_pkg/torrus_Common.pm
index
61cdde0
..
672fa86
100644
(file)
--- a/
FS/FS/part_pkg/torrus_Common.pm
+++ b/
FS/FS/part_pkg/torrus_Common.pm
@@
-32,7
+32,7
@@
sub calc_usage {
my @sdate = localtime($$sdate);
#sdate is next bill date, but we want the report from last month
- my($m, $y) = ($sdate[4], $sdate[5]);
+ my($m, $y) = ($sdate[4], $sdate[5]
+1900
);
if ( $m == 0 ) { $m=12; $y--; }
$m = "0$m" if length($m) == 1;
my $rep_date = "$y-$m-01";