tracker issue : CF-4200077

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

TimeFormat backward compatibility bug

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Steve Sommers / Steve Sommers ()

Created: 11/01/2017

Components: Language, DateTime Functions

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: CF10, 11 & 2016 /

Priority/Frequency: Normal /

Locale/System: / Windows 10 64 bit

Vote Count: 0

Problem Description: TimeFormat minute mask is not backwards compatible with earlier versions - m or mm.

Steps to Reproduce: #TimeFormat(now(),"hh:mm:ss")#

Actual Result: 12:mm:35

Expected Result: 12:10:35

Any Workarounds: Use nn instead, which is fine and expected when using DateTimeFormat, but the older TimeFormat should honor the nn because mm on older CF versions results in 12:nn:35. I had to add <cfif application.cfVersion GTE 10>... around all my timeFormat code.

Attachments:

Comments:

@Steve: I tried this on ColdFusion 2016 Update 5 Code:<cfoutput>#TimeFormat(now(),"hh:mm:ss")#</cfoutput> Result: 10:25:02 Please let us know on which update of CF you are facing this issue.
Comment by Dattanand M.
207 | November 02, 2017 05:17:14 AM GMT
Closing this bug for now, will reopen the bug if you hit this issue again.
Comment by Dattanand M.
29512 | August 16, 2018 06:56:21 AM GMT