👷‍♂️ Round times to nearest 15 min in seed script

This commit is contained in:
Luke Vella 2023-04-04 10:41:16 +01:00
parent 38454302b3
commit d477d066a4

View file

@ -44,8 +44,10 @@ async function main() {
Date.now(),
Date.now() + 1000 * 60 * 60 * 24 * 30,
randInt(16, 1),
) //
)
.map((date) => {
// rounded to nearest 15 minutes
date.setMinutes(Math.round(date.getMinutes() / 15) * 15);
return {
start: date,
duration,