Development (#11)
We need this NOW.
---------
Co-authored-by: PineaFan <ash@pinea.dev>
Co-authored-by: pineafan <pineapplefanyt@gmail.com>
Co-authored-by: PineappleFan <PineaFan@users.noreply.github.com>
Co-authored-by: Skyler <skyler3665@gmail.com>
diff --git a/ClicksMigratingProblems/randomPunishments.js b/ClicksMigratingProblems/randomPunishments.js
index af9c908..432a9f8 100644
--- a/ClicksMigratingProblems/randomPunishments.js
+++ b/ClicksMigratingProblems/randomPunishments.js
@@ -11,7 +11,7 @@
Math.floor(Math.random() * 9)
];
// Select a random date in the last year
- let date = new Date(new Date().getTime() - Math.floor(Math.random() * 31536000000));
+ let date = new Date(Date.now() - Math.floor(Math.random() * 31536000000));
// Add to database
await collection.insertOne({
type: type,