cancel
Showing results for 
Search instead for 
Did you mean: 

3.4 Date change [Solved]

michaelc
Champ on-the-rise
Champ on-the-rise
Minor but in my changes some of the dates are not changed.
  is there a document that outlines all the changes required to change the date format from dd/mm/yy to US mm/dd/yy
   and the clock to am/pm.
4 REPLIES 4

michaelc
Champ on-the-rise
Champ on-the-rise
Several other Property files needed to change
  org/alfresco/components/form/
       control-wrapper.post.properties
       form.get.properties and the en version
   org/alfresco/components/rules/config
       rules-config-condition.get.properties

  and the prior files of
      org/alfresco/web-extension/messages/common.properties and en version

jenniferh
Champ in-the-making
Champ in-the-making
Hi,

I am having the same issues with the date time picker control. I need to have the date format in US English (MM/DD/YYYY). I know the format specification is in the form.get_en.properties file. The two properties I need to override are

form.control.date-picker.entry.date.format
form.control.date-picker.display.date.format

I don't want to change these in the share.war, so I have copied the directory structure and the file under my extensions directory. This works fine. My only issue is that I guess I have to copy all the other properties in the file also. If I try to list just those two in my overridden form.get_en.properties file, then the program will not find the other properties. Is there another way to do this so that I don't have to copy the entire contents of this file?

michaelc
Champ on-the-rise
Champ on-the-rise
as far as I know you need to copy the complete file, this may be different in 4.0 but I have not looked.

davidcognite
Star Contributor
Star Contributor
Yes, to override any message string you need to override the whole file. That behaviour hasn't changed in 4.0, but the files you need to override may have done: we have consolidated a lot of date formatting strings into common.properties (prefixed: date-format).

HTH,
David.