Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

parseDateTime behaviour change in CF11?

$
0
0

Hi,

 

I'm just working on Migration CF10 -> CF11 and reallized that some figures are display like date.

So check and the debugging ends on that:

CF 10 :

parseDateTime("2000") => Exception "2000 is an invalid date or time string."

 

CF 11:

parseDateTime("2000") => {ts '2000-01-01 00:00:00'}

 

Sound really strange.

 

Regards.

 

 

More experimentation in CF11:

parseDateTime("999") => Exception "999 is an invalid date or time string."

parseDateTime("0999") => {ts '0998-12-27 00:00:00'}

parseDateTime("1000") => {ts '0999-12-27 00:00:00'}

parseDateTime("1582") => {ts '1581-12-22 00:00:00'}

parseDateTime("1583") => {ts '1583-01-01 00:00:00'}

...


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>