1
0

feat(gantt): use time constants

This commit is contained in:
Dominik Pschenitschni
2022-10-19 15:18:34 +02:00
committed by kolaente
parent db611ab2d3
commit a70a2e3ba6
9 changed files with 96 additions and 77 deletions

View File

@ -1,3 +1,5 @@
import {MILLISECONDS_A_WEEK} from "@/constants/date";
export function getNextWeekDate(): Date {
return new Date((new Date()).getTime() + 7 * 24 * 60 * 60 * 1000)
return new Date((new Date()).getTime() + MILLISECONDS_A_WEEK)
}