[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sascha Rodekamp updated OFBIZ-4014: ----------------------------------- Attachment: OFBIZ-4014_i18nTimepicker.patch OFBIZ-4014_dateJs.zip Hi chaps, here is a POC to i18n the Timepicker results. I used the JS Lib Erwan suggested. We have still the problem to load the right language template file. I tested my implementation in the example screens, you can: * Change the Date via the Date / Timepicker * Change the Date manually The Script: * convert the Date / Time to the local format (if a language template is found, otherwise the default will be used) * convert the manual changed Date / Time back to the DB format * the converted time is only for presentation purposes (separate input field), the time which will send to the database isn't effected Hope someone can have a look to these changes and we can discuss it :-) To apply the patch: * extract the zip file * copy the datejs folder to framework/images/webapp/images/jquery/plugins/ * apply the patch file Cheers And have a good day Sascha > i18n from DateTime display fields > ---------------------------------- > > Key: OFBIZ-4014 > URL: https://issues.apache.org/jira/browse/OFBIZ-4014 > Project: OFBiz > Issue Type: Improvement > Components: framework > Affects Versions: SVN trunk > Reporter: Sascha Rodekamp > Fix For: SVN trunk > > Attachments: OFBIZ-4014_dateJs.zip, OFBIZ-4014_i18nTimepicker.patch, > OFBIZ-4014_ModelFormField_DateTimeField_i18n.patch > > > Hi everybody, > i did a little improvement in the "display" form fields from type date and > date-time. > In the past the timestamps where read from the DB and the string was simply > cut, that didn't match with (i.e.) German date pattern. I changed this > substring stuff and used the locale and timezone with the dateFormatter to > create a i18n date string. > This patch works for: <display type="date" /> and <display type="date-time" /> > Hope that helps. > Have a nice day > Sascha -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.