Some estimation reporting fixes (#2265)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-08-30 16:11:46 +06:00
committed by GitHub
parent ff0258c7e1
commit 43b59c9fb2
12 changed files with 99 additions and 53 deletions
+2
View File
@@ -562,6 +562,8 @@ export function getSprintDays (value: Sprint): string {
}
export function getDayOfSprint (startDate: number, now: number): number {
startDate = new Date(startDate).setHours(0, 0)
now = new Date(now).setHours(0, 0)
const days = Math.floor(Math.abs((1 + now - startDate) / 1000 / 60 / 60 / 24))
const stDate = new Date(startDate)
const stDateDate = stDate.getDate()