Status/Resolution/Reason: Closed/Won't Fix/
Reporter/Name(from Bugbase): H God / H God (H God)
Created: 04/20/2015
Components: General Server
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: ALL / Win 2008 Server R2 64 bit
Vote Count: 0
Problem Description: coldfusion reports nowUTC from nowUTC = dateconvert('local2utc",now()) correctly, but when using nowUTC in datedediff, the result is based on now() instead of nowUTC ....
Steps to Reproduce: see example in test configuration. and attached screenshot of the result here in my test. I am based in amsterdam and here is a time difference of 2hrs with UTC.
Actual Result: dateconvert("local2utc") seems not make any difference in the datediff result.
Expected Result:there should be difference between the two datediff's.
Any Workarounds:
???
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3972534
External Customer Info:
External Company:
External Customer Name: H
External Customer Email:
External Test Config: My Hardware and Environment details:
<!--- Test script: --->
<cfscript>
tst.lowDT = createdatetime(2015,04,20,09,20,17);
tst.now = now();
tst.nowUTC = DateConvert("LOCAL2UTC",now());
tst.diff_with_now = datediff('n',tst.lowDT,tst.now);
tst.diff_with_nowUTC = theTimediff('n',tst.lowDT,tst.nowUTC);
</cfscript>
<cfdump var="#tst#" label="datediff direct">
Attachments:
Comments: