tracker issue : CF-3861371

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

Start time and endTime in cfloop prints 12.00 AM always

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Awdhesh Kumar)

Created: 12/03/2014

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 292239 / CF11 Update5

Priority/Frequency: Major / All users will encounter

Locale/System: ALL / Mac 10 All,Win XP All

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Problem:
Start time and endTime in cfloop prints 12.00 AM three times rather than  printing the right time.

Method:
<CFSET StartTime = CREATEDATETIME( 2011, 8, 1, 5, 0, 0 )>
<CFSET EndTime = CREATEDATETIME( 2011, 8, 1, 6, 30, 0 )>

<CFLOOP INDEX="dtTime" FROM="#StartTime#" TO="#EndTime#" STEP="#CREATETIMESPAN(0,0,30,0)#">
	    <CFOUTPUT>#TimeFormat(CREATEODBCDATETIME(dtTime))#<br/> 
		</CFOUTPUT>
</CFLOOP>
Result:
12.00 AM
12.00 AM
12.00 AM
Expected:
5.00 AM
5.30 AM
6.00 AM

Workaround: No

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3861371

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

CF11 (11,0,02,291725) on Linux outputs as expected.
Comment by External U.
9753 | December 03, 2014 04:25:03 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
9754 | February 20, 2015 09:27:10 AM GMT
Unable to reproduce this issue on CF11 Update 4 (build 11,0,04,293328) on Windows 2012 R2 w/ Java version 1.8.0_66. The output is as expected: ----------- 5.00 AM 5.30 AM 6.00 AM ----------- Thanks!, -Aaron
Comment by External U.
9755 | November 21, 2015 09:51:18 PM GMT