Closed GoogleCodeExporter closed 8 years ago
Using service capture I can see the results. You can use this call to just
return 1 post,
var token:AsyncToken = blogapi.call("metaWeblog.getRecentPosts", "",
user_txt.text,
password_txt.text, 1);
Original comment by dorkiedo...@gmail.com
on 11 Aug 2007 at 1:36
I think its having trouble with this date: "20070804T00:28:12Z"
It is breaking in the decodeObject() method:
else if (robject.children().name()== TYPE_DATE)
{
var tdatestring:String = robject.children();
var datepattern:RegExp = /^(-?\d\d\d\d)-?(\d\d)-?(\d\d)T(\d\d):(\d\d):(\d\d)$/;
var d:Array = tdatestring.match(datepattern); // d is null
var tdate:Date = new Date(d[1],d[2]-1,d[3],d[4],d[5],d[6]); // error here
return tdate;
}
Original comment by dorkiedo...@gmail.com
on 11 Aug 2007 at 11:54
This seems to have fixed it:
var datepattern:RegExp = /^(-?\d\d\d\d)-?(\d\d)-?(\d\d)T(\d\d):(\d\d):(\d\d)/;
I took off the end of the string character, "$".
I don't know if this is a bug in the latest wordpress (2.2.2) or part of the
date.
Original comment by dorkiedo...@gmail.com
on 11 Aug 2007 at 12:18
Thank you very much for the catch. You can get a new build and source from svn
(I
advise this because there are other fixes in there that are not in the latest
build).
Original comment by akeemphi...@gmail.com
on 15 Aug 2007 at 3:36
Original issue reported on code.google.com by
dorkiedo...@gmail.com
on 11 Aug 2007 at 12:48Attachments: