aboutsummaryrefslogtreecommitdiff
path: root/Functions/dateFuncs.js
diff options
context:
space:
mode:
authorJoel Kronqvist <joelkronqvist@proton.me>2023-06-21 12:30:58 +0300
committerJoel Kronqvist <joelkronqvist@proton.me>2023-06-21 12:30:58 +0300
commit9760c6242572f6ed17890b84ec3d14fa414b7579 (patch)
tree710049705e74f5ecbc2b79ffa21eabe637f2b5ec /Functions/dateFuncs.js
parent5f74d40fa736745651514853afdca3ed44e5ae74 (diff)
downloadLYLLRuoka-9760c6242572f6ed17890b84ec3d14fa414b7579.tar.gz
LYLLRuoka-9760c6242572f6ed17890b84ec3d14fa414b7579.zip
Some patches made in production :facepalm:
At least some of them have to do with running updations timely?
Diffstat (limited to 'Functions/dateFuncs.js')
-rw-r--r--Functions/dateFuncs.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/Functions/dateFuncs.js b/Functions/dateFuncs.js
index 55a9372..1c8a9df 100644
--- a/Functions/dateFuncs.js
+++ b/Functions/dateFuncs.js
@@ -46,9 +46,8 @@ function run_at_monday_mornings(func) {
days_to_elapse = 8 - weekday;
ms_to_elapse = ms_in_h * (
days_to_elapse * 24/*hours in a day*/
- - hour // removes unneccessary hours so that we update it at 0 am
- ) + 1 /*+1 so that we know that it won't be exactly midnight
- and possibly sunday. idk if this actually is needed.*/;
+ - hour + 1.5 // removes unneccessary hours so that we update it at 1:30 am
+ );
setTimeout(() => run_at_monday_mornings(func), ms_to_elapse);