tracker issue : CF-4199746

select a category, or use search below
(searches all categories and all time range)

cfschedule complains about endtime is earlier than starttime

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): e-domizil License Team / e-domizil License Team ()

Created: 09/18/2017

Components: Scheduler

Versions: 2016

Failure Type: Non Functioning

Found In Build/Fixed In Build: Updater 5 / latest docs

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 0

Problem Description: cfschedule has a bug.

Steps to Reproduce:Run attached example after 9:00 am German time.

Actual Result: "Start time 17:31:0 should not come after endTime 8:31" on next day.

Expected Result: No error

Any Workarounds:


  1. September 18, 2017 00:00:00: cfschedule.7z
  2. September 18, 2017 00:00:00: Error.png


<!--- the task will expire at the very latest, 12 hours after the last request was run to this application---> <cfset local.ExpiresDate = DateAdd('h',15,now()) /> <cfschedule action=update task="tempTest" url="" startdate="01/01/2016" starttime="#LSTimeFormat(now(), 'h:mm tt')#" enddate="#LSDateFormat(local.ExpiresDate,'mm/dd/yyyy')#" endtime="#LSTimeFormat(local.ExpiresDate, 'h:mm tt')#" interval="5" group="temp" requestTimeout="4" mode="application"/>
Comment by Alexander H.
318 | September 18, 2017 04:13:24 PM GMT
Our local.ExpiresDate variable should have a date/time object that is 15 hours in the future. Unfortunately running this code anytime after 9am local server time will result in an error like the following. The expected result would be no error. The endtime is earlier than the starttime, but the enddate is being disregarded! As this code was executed at 17:31 on 18th Sept 2017, we should have: - a start date/time of 2016/01/01 17:31 - an end date/time of 2017/09/19 08:31
Comment by Alexander H.
319 | September 18, 2017 04:13:56 PM GMT
We need a hotfix for CF2016, too.
Comment by Alexander H.
320 | October 03, 2017 11:11:15 AM GMT
This is not a bug . The daily task created from CF admin need end and start time for each day. Hence end time cannot be greater than start time. We have fixed the documentation to clear the confusion. Also, for such complex schedules please use Cron Expressions.
Comment by Suchika S.
27548 | April 17, 2018 06:27:39 AM GMT