[ 
https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027331#comment-13027331
 ] 

Sascha Rodekamp commented on OFBIZ-4014:
----------------------------------------

Hi Jonas, hi Erwan, 
sorry for my late response to this. We have a date/time conversion file for 
danish(date-da-DK.js) which is loaded properly when i choose da-DK language.
Maybe something is wrong in the i18n file itself. The Idea was to support the 
country specific date/ time format and convert it on the fly in the ofbiz 
default one.
I have neither problems with german (de-DE, de) nor english date/time formats. 

What's your default date/time format (pattern) you would support? 

The jsLanguageFilesMapping.java is generated automatically based on the 
languages ofbiz supports. There is also a Service which creates this java class 
if it is triggered. 

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

Reply via email to