feat: timemanager cronjob now runs at 0:01 AM utc
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
f87ef82e66
commit
a42016961f
1 changed files with 2 additions and 1 deletions
|
@ -61,9 +61,10 @@ object TimeManager : IFeature {
|
|||
| | | | | | | / (optional) Week days
|
||||
* * * * * * 0o *w*/
|
||||
|
||||
// Register the cronjob to run at 0:01 AM UTC every Monday
|
||||
override suspend fun registerThread() {
|
||||
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 {
|
||||
this.runThread()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue