2

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.

Hamid Shariati
  • 546
  • 6
  • 18

1 Answers1

3

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.

Hamid Shariati
  • 546
  • 6
  • 18