feat: timemanager cronjob now runs at 0:01 AM utc

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-06-29 08:39:43 +02:00
parent f87ef82e66
commit a42016961f

View file

@ -61,9 +61,10 @@ object TimeManager : IFeature {
| | | | | | | / (optional) Week days | | | | | | | / (optional) Week days
* * * * * * 0o *w*/ * * * * * * 0o *w*/
// Register the cronjob to run at 0:01 AM UTC every Monday
override suspend fun registerThread() { override suspend fun registerThread() {
Logger.out("Adding message scheduler...") Logger.out("Adding message scheduler...")
val scheduler = buildSchedule("0 0 4 * * * 0o 1w") // 0 0 4 * * * 0o 1w // 0o is UTC val scheduler = buildSchedule("0 1 0 * * * 0o 1w") // 0 0 4 * * * 0o 1w // 0o is UTC
scheduler.doInfinity { scheduler.doInfinity {
this.runThread() this.runThread()
} }