michaelklishin/quartz-mongodb — pull request #7 by daniel-h (2012-12-05 12:11:29+00:00)
Title: Fixed problem that JobExecutionContext.getPreviousFireTime() returns the actual execution time

Fixed problem that JobExecutionContext.getPreviousFireTime() returns the actual execution time.

This seems to be because the trigger is updated before the TriggerFiredBundle, is created.
I assume the TriggerFiredBundle holds the data available later in a job implementation via JobExecutionContext.

Thus the update of the trigger needs to happen after the TriggerFiredBundle has been created with trigger values.