AnsweredAssumed Answered

Configurable Date Patterns?

Question asked by ryanj1 on May 16, 2014
Latest reply on Aug 19, 2015 by trademak
The default date pattern is hard coded in the org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl class within the "initFormTypes()" method. As there are situations where it would be beneficial to be able to change the default date pattern (from "dd/MM/yyyy") without having to sub type that class and override that method, can we add a protected member variable "datePattern" to the class and have the "initFormTypes()" method reference that member variable for the pattern instead of having it hard coded?

I'd be happy to make the modification and create a pull request. My plan would be to check for a value; if not specified (null) or invalid, I would default to the existing "dd/MM/yyyy".

Please let me know your thoughts.