You've already forked openaccounting-web
forked from cybercinch/openaccounting-web
fix report date bug
This commit is contained in:
@@ -20,8 +20,7 @@ export class Util {
|
|||||||
let date = new Date();
|
let date = new Date();
|
||||||
date.setHours(0, 0, 0, 0);
|
date.setHours(0, 0, 0, 0);
|
||||||
date.setFullYear(parseInt(parts[0]));
|
date.setFullYear(parseInt(parts[0]));
|
||||||
date.setMonth(parseInt(parts[1]) - 1);
|
date.setMonth(parseInt(parts[1]) - 1, parseInt(parts[2]));
|
||||||
date.setDate(parseInt(parts[2]));
|
|
||||||
|
|
||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user