mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 11:47:42 +02:00
Some estimation reporting fixes (#2265)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user