Rhino version
Hi,
I'm trying to parse an ISO String date with a time zone in a JS service (2016-03-23T17:38:01.045+0100) and it looks like the JS engine is not able to handle it. When I try to print the date in logs I get this error : Invalid Date.
I tried the same code directly in Rhino console from the jar delivered in Thingworx and I get the same issue (sound logic, but it was just to be sure) :
D:\Applications\apache-tomcat-8.0.29\webapps\Thingworx\WEB-INF\lib>java -jar custom-rhino-js-5.1.0.jar
Rhino 1.7 release 5 PRERELEASE 2013 10 14
js> var t = new Date("2016-03-23T17:38:01.045+0100");
js> t
Invalid Date
js>
Then I tried the same code in the last version of Rhino and it work perfectly :
D:\tmp>java -jar rhino-1.7.7.1.jar
Rhino 1.7.7.1 2016 02 03
js> var t = new Date("2016-03-23T17:38:01.045+0100");
js> t
Wed Mar 23 2016 17:38:01 GMT+0100 (CET)
js>
So my question is : Is there a way to upgrade Rhino engine embedded in Thingworx to the last version ?
Thanks a lot,
Sébastien
