Coreoz / Wisp

A simple Java Scheduler library with a minimal footprint and a straightforward API
Apache License 2.0
133 stars 23 forks source link

Timezone for each job #4

Closed muhdkhokhar closed 4 years ago

muhdkhokhar commented 5 years ago

Hi

I want to schedule a job but the cron expression would be different for eac job and timezone.

Can I provide the tiemzone to the job?

amanteaux commented 5 years ago

There is not built-in tool currently. So if you need it now, you can copy/paste the CronSchedule class in your project and change line 49 with the timezone you need.

In the future I think we will add an extra constructor to CronSchedule to enable to customize the timezone.

muhdkhokhar commented 5 years ago

Thanks. I will do this.

amanteaux commented 5 years ago

And if you are interested, in the next release (in a week or two), there will be an constructor to customize the timezone of CronSchedule :)

amanteaux commented 5 years ago

Actually I forgot to put the change in the 2.1.0 version :( It will definitely be in the next release.

amanteaux commented 4 years ago

Released in Wisp 2.2.0