tracker issue : CF-4113069

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

DateTimeFormat not honoring escape characters per wiki documentation

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Tim Mixell / Tim Mixell (Tim Mixell)

Created: 02/02/2016

Components: Language, Functions

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Windows 7 SP1 64-bit

Vote Count: 5

Listed in the version 2016.0.03.300466 Issues Fixed doc
Referencing documentation here:

Problem Description: when trying to an escaped sequence in DateTimeFormat, characters in the sequence are omitted, or the function parses mask-characters

Steps to Reproduce: <cfdump var="#DateTimeFormat(now(), "yyyy.MM.dd G 'at' HH:nn:ss z", "America/New_York")#" />

Actual Result: 2016.02.02 AD 'P' 16:41:21 EST

Expected Result: 2016.02.02 AD at 16:41:21 EST

Any Workarounds: not really... the legacy date/time functions don't support timezone as an argument

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

Watson Bug ID:	4113069

Deployment Phase:	Pre-Alpha

External Customer Info:
External Company:  
External Customer Name: Tim Mixell
External Customer Email:  
External Test Config: My Hardware and Environment details:

Windows 7 / IIS 7.5 / CF 11,0,07,296330



link to scratch pad, courtesy of a fellow developer:
Comment by External U.
4837 | February 02, 2016 04:26:09 PM GMT
this is preventing me from formatting dates the way I would like to using DateTimeFormat.
Vote by External U.
4838 | February 02, 2016 04:32:03 PM GMT