Comment #47 on issue 1945 by [email protected]: call SetTime(0,0,0,0)
and throws "this is not a Date object." if Date() object has been subclassed
http://code.google.com/p/v8/issues/detail?id=1945
Even, our site encountered the same problem. but as earlier mentioned in
this thread, we fixed the issue by below code snippet:
_c = new Date(_c.getFullYear(), _c.getMonth(), _c.getDate(), 0, 0, 0, 0);
instead of setHours method.
if you are encountering the issue in setHours, hopefully this work around
should be solving your problem. All the best!
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev