Trouble toQueryString() and Dates

21 views
Skip to first unread message

kstubs

unread,
Sep 10, 2012, 10:28:20 PM9/10/12
to prototype-s...@googlegroups.com
I'm not sure where I am going wrong, probably in the parsing of the original date value (dates are confusing to me).  I have an object that looks like this:

dto = { LookupIndex: 1, mediaCreatedAt: Tue Sep 11 2012 02:06:31 GMT-0700 (US Mountain Standard Time), query_name: "fetch", stamp=1347329813597 }

In console, if I have over mediaCreatedAt, I see an error for _proto__, and it is Invalid date.
When I call toQueryString() on my object like this:

$H(dto).toQueryString() the result is:  stamp%3D=1347329813597&LookupIndex=1&query_name=fetch

Ideas?

Thanks,
Karl..

Victor

unread,
Sep 25, 2012, 4:34:39 AM9/25/12
to prototype-s...@googlegroups.com
Make please example at jsfiddle.net
Reply all
Reply to author
Forward
0 new messages