(too long for comments)
I did a bit of work with CF11 based on blog comments. From what I could say, the reason for the failed initial comparison is that although the first two dates look the same:
// code lastModifiedUTC :
... due to differences in time zones, inside objects represent a different point in time. This is why dateCompare () does not return 0. (The third comparison fails for the same reason.)
// code lastModifiedUTC :
Please note, if you are comparing lastModifiedUTC with the original (local) date, does it work as expected? Despite different time zones, both objects still represent the same point in time inside:
// code dateCompare :
It is curious that the second comparison also does not return 0, despite the fact that both objects have the same time and time zone. However, if you look at the internal values โโof time, the milliseconds are different. Milliseconds POP values โโare always zero. DatePart reports the same result. This approach makes sense because the POP date was created by parsing a string that does not contain milliseconds. However, this does not explain why DateTimeFormat shows milliseconds as nonzero.
The second comparison does not return 0, because the two dates have different millisecond values. Unlike the file date, the POP date was created by parsing a string that does not contain milliseconds, so this date is always zero. Since dateCompare () does a full comparison (including milliseconds), the two dates are not equal.
// code lastModifiedUTC :
However, on a good note, this means that the comparison works if you miss the milliseconds and compare only with the "second", i.e. dateCompare(date1, date2, "s") :
// code DateCompare(lastModifiedUTC, parseLastModifiedHttpTimePOP, "s") :
Aside, I'm not sure why Adobe decided to change the behavior of something as important as UTC dates. Unfortunately, I donโt know that you can do a lot, except for the comments mentioned on the blog a) Change the jvm time zone or b) create your own version of dateConvert and use this instead.
Boy what a mess ....