Date picker control
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2012 06:43 PM
Hi,
I'm not sure if this is the best place to ask this question but since I'm working with records management I thought I'd try here first. I have a form in share that uses a date picker control. The date is displaying in the edit field in UK English instead of US English. For example, Jan 13, 2012 displays as 13/1/2012. I need it to display as 1/13/2012. I was able to "fix" this by overriding the form.get_en.properties under /WEB-Inf/classes/alfresco/site-webscripts/org/alfresco/components/form. That is, I created a site-webscripts/org/alfresco/components/form directory structure under my extensions/web-extension folder and copied the form.get_en.properties file there. Then I changed the following two properties:
form.control.date-picker.entry.date.format
form.control.date-picker.display.date.format
This worked but I am wondering if there is a better way to do it (i.e., just overriding those two properties without having to copy the contents of the entire file). Also, I thought that US English was supposed to be the default so I'm confused as to why the date picker control is displaying UK English.
I'm not sure if this is the best place to ask this question but since I'm working with records management I thought I'd try here first. I have a form in share that uses a date picker control. The date is displaying in the edit field in UK English instead of US English. For example, Jan 13, 2012 displays as 13/1/2012. I need it to display as 1/13/2012. I was able to "fix" this by overriding the form.get_en.properties under /WEB-Inf/classes/alfresco/site-webscripts/org/alfresco/components/form. That is, I created a site-webscripts/org/alfresco/components/form directory structure under my extensions/web-extension folder and copied the form.get_en.properties file there. Then I changed the following two properties:
form.control.date-picker.entry.date.format
form.control.date-picker.display.date.format
This worked but I am wondering if there is a better way to do it (i.e., just overriding those two properties without having to copy the contents of the entire file). Also, I thought that US English was supposed to be the default so I'm confused as to why the date picker control is displaying UK English.
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2012 12:16 AM
Hi Jenniferh,
As per my knowledge you had done it a right way.
If you want to override some contents of a file then only overriding the required properties without overriding entire properties of the file will be effective .
Thanks
Abhashree
As per my knowledge you had done it a right way.
If you want to override some contents of a file then only overriding the required properties without overriding entire properties of the file will be effective .
Thanks
Abhashree
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2012 10:23 AM
Hi Abhashree,
Thanks for your reply, but I am still confused. Your reply suggests there is a way to override only those two properties. Can you explain how to do this without having to copy the contents of the entire file?
Thanks,
Jennifer
Thanks for your reply, but I am still confused. Your reply suggests there is a way to override only those two properties. Can you explain how to do this without having to copy the contents of the entire file?
Thanks,
Jennifer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2012 12:01 PM
I have done this but it is not working for me
My default is set to UK English and i wan to change it to US English format for my custom model content that I created, so the properties with d:date in my model should display in US format and not UK.
My default is set to UK English and i wan to change it to US English format for my custom model content that I created, so the properties with d:date in my model should display in US format and not UK.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2012 06:46 PM
If you changed the properties in the .war file you may need to delete your tmp and work folders in your server directory before you can see the change.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2012 09:39 AM
Don''t understand what you mean