Genesys CTI User Forum > Genesys-related Development
Problem with JS function at Composer
cavagnaro:
SO...
Valid formats so far:
2009,11,11 OK
Fri Mar 25 2015 09:56:24 GMT+0100 (Tokyo Time) OK
Wed Mar 25 2015 09:56:24 GMT+0100 OK
Sat Jun 09 2007 17:46:21 OK
Jun 09 2007 17:46:21 OK
06 09 2007 17:46:21 OK
Will use the last one.
hsujdik:
What about use a different constructor instead of Date(String)? Even the Spidermonkey Javascript Engine (which MCP uses) does not recommend using this constructor:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
cavagnaro:
The issue is that the WS JS date format is valid...I can't ask them to modify it as is a universal WS and works on other components.
I can't do nothing with date functions with that Date returned...so can do only parsing. finally went with 06 09 2007 17:46:21
Nice info about the JS engine used :D I was searching that
hsujdik:
I don't remember where I found it, but last time I was looking for it, I saw that MCP uses SpiderMonkey 1.7 (maybe it has been updated already)
hsujdik:
Found it on VP MCP 8.1.x release notes (https://docs.genesys.com/Special:Repository/gvp_mcp81rn.html?id=da7f5c20-055a-4dd5-bc20-cadd6f900d2e)
[i]Mozilla SpiderMonkey JavaScript engine in the Next Generation VoiceXML Interpreter has been upgraded to version 1.7.[/i]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version