bug in DateUtil.parseW3CDTF

10 views
Skip to first unread message

Gerry

unread,
Feb 24, 2010, 1:20:57 PM2/24/10
to ActionScript 3 Core Library
Hi,

Is there a bug base for corelib where I can file a bug?

I've noticed that if you try to parse a date only string like:

"2010-02-24", parsing fails because lines 540 and 541 of DateUtil:

var dateStr:String = str.substring(0, str.indexOf("T"));
var timeStr:String = str.substring(str.indexOf("T")+1, str.length);

assume the presence of the optional T delimeter. So in this case, the
string

"2010-02-24" gets assigned to the variable timeStr, and its all
downhill from there.

I'm going to modify my local copy to check for the existence of the T
character. Can I submit my changes when I'm done?


Thanks,


Gerry

Reply all
Reply to author
Forward
0 new messages