|
@@ -7,7 +7,9 @@ import DayList from './list/day_list';
|
7
|
7
|
import WeekList from './list/week_list';
|
8
|
8
|
|
9
|
9
|
var getDaysArray = function(s,e) {for(var a=[],d=new Date(s);d<=e.setHours(23,59,59);d.setDate(d.getDate()+1)){ a.push(new Date(d));}return a;};
|
10
|
|
-var getWeek=function(i_date){return Math.ceil(((i_date-new Date(i_date.getFullYear(),0,1)+86400000)/86400000)/7)}
|
|
10
|
+var getWeek=function(i_date){
|
|
11
|
+ var first_day = new Date(i_date.getFullYear(),0,1)
|
|
12
|
+ return Math.ceil(((i_date-first_day+ (first_day.getDay()-1) * 86400000)/86400000)/7)}
|
11
|
13
|
|
12
|
14
|
function DepensesList(props)
|
13
|
15
|
{
|