mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 02:06:34 +02:00
👷♂️ Round times to nearest 15 min in seed script
This commit is contained in:
parent
38454302b3
commit
d477d066a4
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue