Reputation: 12611
when I send an object through an HTTPService to an XML api run by a Rest ruby on rails server.. how does it get converted to XML? I mean, it just works fine for strings and numbers, but for example Date type conversion causes an "unprocessable entity" error on rails log..
Any Idea?
Upvotes: 0
Views: 1150
Reputation: 1926
One possibility is that when the object is converted to XML, Flash calls toString()
on the Date object, resulting in the Day Mon DD HH:MM:SS TZD YYYY
format. If you call valueOf()
on the Date object, you will get milliseconds since epoch, which is probably better for your case.
Upvotes: 1