This project has moved and is read-only. For the latest updates, please go here.

Date issues

Apr 12, 2012 at 1:00 AM

The sample code JEngine.Evaluate("new Date('4/11/2012 6:32:41 AM')") fails with an invalid date but new Date('4/11/2012 6:32:41 AM') in IE, firefox and chrome all yield valid dates. Does Jurassic not accept AM/PM in relation to dates? I'm using the latest source code.

Apr 12, 2012 at 6:20 AM

No it doesn't, because technically the string is supposed to be RFC 1123 format, which doesn't support AM/PM.  But given that the major browsers support it, I'll support it too.

Apr 12, 2012 at 12:37 PM

I have committed a fix for this issue.

Apr 12, 2012 at 3:42 PM

Thanks. I really appreciate it. I will also like to get a better understand of how jurassic work so I can submit patches as well. I have the latest source code and will take some time to go over it today. I just have one question, is jurassic using google v8 engine?

Apr 12, 2012 at 10:09 PM

No, Jurassic is a completely independant javascript implementation.