as3corelib
as3corelib copied to clipboard
DateUtil.toW3CDTF shifts milliseconds if millis<100
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.
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)