mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Squid-Accounting: Bugfix 10693
Fixes problem with last years month in webinterface and bill creation
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = 1.0.1
|
||||
VER = 1.0.2
|
||||
|
||||
THISAPP = squid-accounting-$(VER)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
|
||||
@@ -337,7 +337,12 @@ sub getmonth{
|
||||
my $monat=$_[0]-1 if($_[0]);
|
||||
my $tag=1;
|
||||
my $time1=timelocal(0,0,0,$tag,$monat,$jahr);
|
||||
my $time2=timelocal(0,0,0,$tag,($monat+1),$jahr);
|
||||
my $time2=0;
|
||||
if (($monat+1) == 12){
|
||||
$time2=timelocal(0,0,0,$tag,0,$jahr+1);
|
||||
}else{
|
||||
$time2=timelocal(0,0,0,$tag,$monat+1,$jahr);
|
||||
}
|
||||
--$time2;
|
||||
return ($time1,$time2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user