change dates in processmaker cartable to persian (jalali) date view

659 Views Asked by At

someone ask me how Can I show dates in processmaker in persian. I found a way just to pass this duty to him, and solve a problem.

1

There are 1 best solutions below

3
Hamid Shariati On BEST ANSWER

first of all replace below in : workflow/engine/templates/cases/casesList.js

myDate.dateFormat( FORMATS.casesListDateFormat )

to

 new persianDate(myDate.dateFormat( FORMATS.casesListDateFormat )).format()

it needs to include persianDate or any to library workflow/engine/methods/cases/casesListExtJs.php like bellow:

echo "<script src='/lib/pmdynaform/libs/datepicker/jalali/persian-date.min.js'></script>";

remember to upload js libraries in destination indicated above.