Status/Resolution/Reason: Closed/Withdrawn/AsDesigned
Reporter/Name(from Bugbase): A. Bakia / A. Bakia (A. Bakia)
Created: 03/09/2016
Components: Language
Versions: 10.0
Failure Type: Unspecified
Found In Build/Fixed In Build: Beta2_v12 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem Description: The function dateDiff results in -3600 seconds for two dates that are the same.
Steps to Reproduce:
<cfset utcDate1 = dateConvert("local2Utc", now()) />
<cfset utcDate2 = dateAdd( "s", getTimeZoneInfo().UTCTotalOffset, now()) />
<cfoutput>
<pre>
UTC Date: #utcDate1#
Alternative UTC Date: #utcDate2#
Difference in UTC dates: #dateDiff("s", utcDate1, utcDate2)# seconds
</pre>
</cfoutput>
Actual Result: The output shows the dates utcDate1 and utcDate2 to be the same, to the last second. But the dateDiff results in -3600 seconds.
Expected Result:
I expected the dateDiff to result in 0 seconds.
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126482
External Customer Info:
External Company: (withheld for privacy)
External Customer Name: A. Bakia
External Customer Email: A.BAKIG@CHELLO.NL
External Test Config:
Attachments:
Comments: