as3corelib icon indicating copy to clipboard operation
as3corelib copied to clipboard

DateUtil.toW3CDTF shifts milliseconds if millis<100

Open darronschall opened this issue 15 years ago • 1 comments

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 avatar Jul 28 '10 20:07 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)

darronschall avatar Jul 28 '10 20:07 darronschall