tracker issue : CF-4201528

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

CreateDateTime() has an aversion to using '11' for the day part

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/UserError

Reporter/Name(from Bugbase): Jack Drysdale Jr / Jack Drysdale Jr ()

Created: 03/13/2018

Components: Language, DateTime Functions

Versions: 10.0

Failure Type: Data Corruption

Found In Build/Fixed In Build: 10,0,20,299202 /

Priority/Frequency: Normal / All users will encounter

Locale/System: ALL / Windows 10

Vote Count: 0

Problem Description:
CreateDateTime() does not like me using '11' for the day part.

Steps to Reproduce:
<cfset aDateTime = CreateDateTime(2018,3,10,2,0,0) />
<cfset bDateTime = CreateDateTime(2018,3,11,2,0,0) />
<cfset cDateTime = CreateDateTime(2018,3,12,2,0,0) />
<cfoutput>
#aDate#
#bDate#
#cDate#
</cfoutput>

Actual Result:
{ts'2018-03-10 02:00:00'}
!!! I GET AN ERROR MESSAGE THAT STATES 'DATA VALUE PASSED TO DATE FUNCTION CREATEDATETIME IS UNSPECIFIED OR INVALID !!!
Expected Result:
{ts'2018-03-10 02:00:00'}
{ts'2018-03-11 02:00:00'}
{ts'2018-03-12 02:00:00'}

Any Workarounds:
None

Attachments:

Comments:

This can be deleted. I know, now, that the issue is because of DST. The date/time that I'm trying to acquire doesn't exist (2am 11 MAR 2018 is when the clocks jump ahead one hour, so 2am doesn't exist - it becomes 3am.)
Comment by Jack D.
67 | March 13, 2018 07:11:27 PM GMT