Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Richard Davies / Richard Davies (Richard Davies)
Created: 03/16/2016
Components: Language, Functions
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win All
Vote Count: 0
Problem Description:
ParseDateTime() returns an incorrect value when converting timezones if the server is currently in daylight savings time.
Steps to Reproduce:
<cfoutput>
<!--- My server is set to Pacific timezone (UTC-8) but DST is currently on so current timezone is PDT (UTC-7) --->
<cfdump var="#GetTimezoneInfo()#">
<!--- Since server is currently on PDT, this should return the exact same time (no timezone conversion),
but it converts it to PST. --->
<p>#ParseDateTime("3/15/2016 01:00:00 AM PDT")#</p> <!--- Returns {ts '2016-03-15 00:00:00'} --->
<!--- ParseDateTime() appears to ignore fact that DST is currently on and convert times to standard time, as
verified by this test which shows no conversion for PST (despite server currently being on DST). --->
<p>#ParseDateTime("3/15/2016 01:00:00 AM PST")#</p> <!--- Returns {ts '2016-03-15 01:00:00'} --->
</cfoutput>
Actual Result:
ParseDateTime("3/15/2016 01:00:00 AM PDT") returns 12:00am when sever is on PDT.
Expected Result:
ParseDateTime("3/15/2016 01:00:00 AM PDT") should return 1:00am when sever is on PDT.
Any Workarounds:
None that I know of other than using GetTimezoneInfo().isDSTon to detect DST and manually add 1 hr to ParseDateTime() results with DateAdd().
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4129246
External Customer Info:
External Company:
External Customer Name: Richard Davies
External Customer Email:
External Test Config: My Hardware and Environment details:
Server Product ColdFusion
Version 10,0,18,296330
Tomcat Version 7.0.64.0
Edition Enterprise
Operating System Windows Server 2012
OS Version 6.2
Update Level /D:/Applications/CFusion/cfusion/lib/updates/chf10000018.jar
Adobe Driver Version 4.1 (Build 0001)
Java Version 1.7.0_15
Java Vendor Oracle Corporation
Attachments:
- March 17, 2016 00:00:00: 1_ScreenClip.png
Comments: