Help with cron job date settings

When I run cron jobs using the scheduler plugin, it seems no notice is taken of an entered end date i.e. the jobs continue to run past the date. I am using this code:

plugins.scheduler.addCronJob(job_name, cron_timings, globals[method_name],start_date , end_date, [method_arguments])

… where start_date and end_date are normal datetime fields. Under testing the jobs run fine but don’t stop :(

In order to test I am entering a datetime 2 or 3 minutes into the future for a job that triggers every 30 seconds. I have also tried entering an end date for yesterday and the jobs still fire.

If anyone can shed some light I would be grateful!

Have you taken a look at the quartz docs, the libs that the plug-in is based on?
They should show you how to use the plug-in: http://www.opensymphony.com/quartz/wiki … orial.html

Thanks Marcel,

It seems it may require date objects rather than the timestamp - I’ll test some more.