Open GoogleCodeExporter opened 8 years ago
42
Original comment by yasuk...@gmail.com
on 24 Mar 2008 at 12:44
Original comment by mikechambers
on 2 Jul 2008 at 5:52
This appears to be a problem for dates without a timezone code for example
DateUtil.parseRFC822('Tue, 17 Mar 2009 14:44:46'); will throw an error.
This occurs on line 376 "if (timezone.search(/\d/) == -1)" as timezone is null
(from
var timezone:String = dateParts.shift(); on line 373)
Maybe this should default to UTC if no timezone is specified.
(if(!timezone)timezone
= "UTC")
Original comment by ric...@gmail.com
on 24 Mar 2009 at 4:45
I'm receiving an error when I run
import com.adobe.utils.DateUtil;
var pubDate:String = "Mon, 20 Apr 2009 16:12:01 CDT";
DateUtil.parseRFC822(pubDate);
Notice that I am using a timezone code (ie CDT)
Error Thrown as follows:
Error: Unable to parse the string [Mon, 20 Apr 2009 16:12:01 CDT] into a date.
The
internal error was: TypeError: Error #1009: Cannot access a property or method
of a
null object reference.
at com.adobe.utils::DateUtil$/parseRFC822()
at Untitled_fla::MainTimeline/frame1()
Original comment by johntimo...@gmail.com
on 5 May 2009 at 7:28
Original issue reported on code.google.com by
yasuk...@gmail.com
on 24 Mar 2008 at 12:43