Scheduled tasks - End time before Start time issue

Description

Discussion:
https://dev.lucee.org/t/scheduled-tasks-endtime-before-starttime-issue/1761

Objective:
Execute a scheduled task lets say every 3 minutes between 18:00/6pm and 06:00/6am the next day. Over-night execution.

Expected outcome:
Date and then the time to be respected by Lucee.

What happens:
Lucee seems only respecting the End-time.
No error message in the interface when saving the page.

However looking in the scheduler.log I have
"ERROR","Thread-94781","03/10/2016","20:00:01","schedule task:[TASKNAME]","This task can not be executed because the task definition is invalid; endtime is before starttime"

Environment

Windows Server 2012 R2
Lucee 4.5.1.023 final
Java 1.7.0_76 (Oracle Corporation) 64bit

Assignee

Unassigned

Reporter

David Eurenius

Priority

Major

Labels

Fix versions

None

Affects versions

Configure