justwrote / kjob

A lightweight coroutine based persistent job/cron scheduler written in Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

only support UTC time?

fantasyding opened this issue · comments

when i add a kron job, cronExpression like this: "0 0 1 * * ?",it should have started at 1:00 every day,but not.
I checked the code,I found this

class InMemKJob(config: Configuration) : BaseKJob<InMemKJob.Configuration>(config) {

    class Configuration : BaseKJob.Configuration() {
        /**
         * The timeout until a kjob instance is considered dead if no 'I am alive' notification occurred
         */
        var expireLockInMinutes = 5L
    }

    override val jobRepository: JobRepository = InMemJobRepository(Clock.systemUTC())

    override val lockRepository: LockRepository = InMemLockRepository(config, Clock.systemUTC())
}

It seems to only be supported UTC time, Can I change the time zone?