[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027584#comment-13027584 ]
Sascha Rodekamp commented on OFBIZ-4014: ---------------------------------------- Hi Jonas, yea i know, i wrote the mapping. The easiest way to fix this issue would be to create a da-DA locale file based on the da-DK (if da-DK is sufficient). If you want to klnow how the creation of the mapping file work, have a look at : JsLanguageFileMappingCreator.java, the corresponding ofbiz service is called: createJsLanguageFileMapping. For languages which are described with two letters the method try to guess the the last two once. In the case if the danish language we have no related file with the guessed name so the method take the default language file. To fix the misinterpret issues, i'll check in detail the code and see what i can do. If this is really a problem of the datejs maybe we can report to ther dev team and see if they can fix it. 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 > Assignee: Sascha Rodekamp > Fix For: SVN trunk > > Attachments: OFBIZ-4014_ModelFormField_DateTimeField_i18n.patch, > OFBIZ-4014_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_dateJs.zip, > OFBIZ-4014_dateJs.zip, OFBIZ-4014_dateJs.zip, > OFBIZ-4014_i18nTimepicker.patch, > OFBIZ-4014_i18nTimepicker_And_DateTimeField.patch, > OFBIZ-4014_i18nTimepicker_And_DateTimeField.patch, > OFBIZ-4014_i18nTimepicker_And_DateTimeField.patch, > OFBIZ-4014_languageFileLoading.zip, OFBIZ-4014_lazyLoadJsLanguageFiles.patch, > OFBIZ-4014_lazyLoadJsLanguageFiles.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. For more information on JIRA, see: http://www.atlassian.com/software/jira