AdrianRodriguezVar | 2024-11-07 10:20:45 UTC | #1
Hi, I'm trying to build an interval of dates in a script to uses into data action. If i uses english as language of genesys cloud, this works ok but if i switchs to another language the process brokes because the format of the date.
I have the following logic
FechaFin = formatDate(dateToMilliseconds({{Scripter.Hora de inicio de llamada del cliente}}), "yyyy-MM-dd") FechaInicio = formatDate({{startDateMilliseconds}}, "yyyy-MM-dd") startDateMilliseconds = {{endDateMilliseconds}} - {{thirtyDaysInMilliseconds}} endDateMilliseconds = dateToMilliseconds({{Scripter.Hora de inicio de llamada del cliente}}) thirtyDaysInMilliseconds = 30 * 24 * 60 * 60 * 1000
I know the main issue is the format of {{Scripter.Hora de inicio de llamada del cliente}} when the language change this changes the format of this built in Variable .
Anybody can help me¿ How can i adapt the logic?
My data action is configured like this way : "interval": "${input.startDate}T00:00:00.000Z/${input.endDate}T23:59:59.000Z",
BR
AdrianRodriguezVar | 2024-11-11 08:40:51 UTC | #2
Hi Any help? for this behaviour? BR
Zino_Onokpise | 2024-11-12 17:57:35 UTC | #3
Hi AdrianRodriguezVar
Kindly open a ticket with Care detailing this defect, thank you.
system | 2024-12-13 17:57:38 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 30246