Issue with Date parameter in custom Action

cancel
Showing results for 
Search instead for 
Did you mean: 
urielflores
Member II

Issue with Date parameter in custom Action

I'm trying to set up a repo action giving it a Date as a parameter. The action is working correctly but when I try to edit the Rule and change the date of the parameter it's throwing the following exception:

Exception from executeScript: 01280002 Wrapped Exception (with status template): Failed to convert date sáb feb 29 00:00:00 CST 2020 to string

The first time I configure the Rule it's working fine, the calendar pop ups and allows me to pick a date, but the next time I try to modify it, it doesn't work. Am I missing some configuration?

2 Replies
EddieMay
Alfresco Employee

Re: Issue with Date parameter in custom Action

Hi @urielflores,

Could this be a leap year issue? I note the date is 29/2/2020 - a leap year. Do you have the same issue if you change it to another date - 2/3/2020 for example? 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
urielflores
Member II

Re: Issue with Date parameter in custom Action

Hi!

 

Yes, I have the same issue, in fact, when I check the Rules the displayed date it's the current date and time, not the date I set as a parameter, I also tried to set a date from last year and it's doing the same thing.

Captura de pantalla 2020-03-02 a la(s) 11.03.23.png