DateUtil.toW3CDTF shifts milliseconds if millis<100 #87

Open
darronschall opened this Issue Jul 28, 2010 · 1 comment

1 participant

@darronschall

Originally filed by marcspeck on 2009-02-12T13:43:55

What steps will reproduce the problem?
var d:Date = DateUtil.parseW3CDTF("1994-11-05T08:15:30.045-00:00");
"1994-11-05T08:15:30.45-00:00" == DateUtil.toW3CDTF(d,true);
Note the missing 0 in milliseconds

See patch with updated DateUtil.toW3CDTF() and additional test method. I
did not run the test method, so there might be typos in there.

@darronschall

Updated by mikechambers on 2009-09-22T07:52:06

Original ticket set owner to mikechambers
Original ticket set status to Accepted (we converted to open)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment