kcjoon / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

DateUtil.toW3CDTF shifts milliseconds if millis<100 #91

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by marcsp...@gmail.com on 12 Feb 2009 at 1:43

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by mikechambers on 22 Sep 2009 at 7:52