On 05/02/2018 11:02, Vincent LEPETIT wrote:
# java -version
java version "1.7.0_151"
OpenJDK Runtime Environment (IcedTea 2.6.11) (7u151-2.6.11-2~deb7u3)
OpenJDK 64-Bit Server VM (build 24.151-b01, mixed mode)
These two functions works in the Rhino javascript engine shipped with jdk 1.7
(Mozilla Rhino 1.7 release 3)
I've tested your code, and to make it work, I've had to replace
var DateDepartMax = Math.max(...DatesDepart);
which produce an error, with this :
DateDepartMax = Math.max.apply(Math, DatesDepart);
So it shoud work (assuming your input description array is always properly
formatted, containing values such as '{LEAVINGDATE}20151212')
--
Soisik
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users