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 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. |
[ 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_ModelFormField_DateTimeField_i18n.patch > 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_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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930087#action_12930087 ] Jacques Le Roux commented on OFBIZ-4014: ---------------------------------------- Hi Sascha, There is an overlap with OFBIZ-3843, could you please check? Thanks > 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_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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930106#action_12930106 ] Sascha Rodekamp commented on OFBIZ-4014: ---------------------------------------- Hm yes Nicolas try to achieve the same (with a bigger scope). I didn't look at the input fields, yet. Cause for me it was more relevant to change the display fields (in a first step). Maybe we find together with Nicolas a common solution. > 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_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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970741#action_12970741 ] Nicolas Malin commented on OFBIZ-4014: -------------------------------------- Hi Sascha, I tried to manage locale date on display and edit field. But the second it's more difficult and I hope to manage hidden date as timestamp format to remove all probleme with pk date field. In your solution, you manage the timezone, I check it's possible to inclde this in my patch Nicolas > 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_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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970780#action_12970780 ] Sascha Rodekamp commented on OFBIZ-4014: ---------------------------------------- Hi Nicolas, yes feel free. If you need any help, support, code lines :) don't hesitate to contact. Would be very great if we can get used to this issue and create a cool solution! Cheers 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_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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972542#action_12972542 ] Erwan de FERRIERES commented on OFBIZ-4014: ------------------------------------------- Hi Sascha and Nicolas, would you take a look at this library which could resolve a lot of issues on displaying date : http://code.google.com/p/datejs/ Cheers, > 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_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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973137#action_12973137 ] Sascha Rodekamp commented on OFBIZ-4014: ---------------------------------------- Hey Erwan, yes that lib looks pretty interesting (i like the ninja logo :)). I'll have a closer look in the next day, but at a first glace i think that can solve a few issues. Nicoals what do u mean? So long 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_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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973207#action_12973207 ] Erwan de FERRIERES commented on OFBIZ-4014: ------------------------------------------- Hi Sascha, I'm very interested in seeing what you can do with it... At the moment, I don't dive the time to deep dive into it. But I know that lot of people are waiting to see a correctly formatted date on screen ! Cheers > 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_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. |
In reply to this post by Nicolas Malin (Jira)
[ 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. |
In reply to this post by Nicolas Malin (Jira)
[ 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_ModelFormField_DateTimeField_i18n.patch Patch update against the latest trunk. > 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, 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981743#action_12981743 ] Sascha Rodekamp commented on OFBIZ-4014: ---------------------------------------- Hm i think the only missing thing are date fields in FTL files. Maybe we create a simple java method which can be called within FTL to format the Date / Time field?! > 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, 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984680#action_12984680 ] Sascha Rodekamp commented on OFBIZ-4014: ---------------------------------------- Hm nobody interested in internationalize date/time display fields and date/time picker? > 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, 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984695#action_12984695 ] Jacques Le Roux commented on OFBIZ-4014: ---------------------------------------- Of course I'm, but I'm currently cleaning a lot of pending tasks in my todo list... > 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, 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984699#action_12984699 ] Sascha Rodekamp commented on OFBIZ-4014: ---------------------------------------- Ok Jacques :) cool, don't hurry, just wanted to know if someone is interested or if it is worth to keep this issue open and up to date ;) Cheers > 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, 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. |
In reply to this post by Nicolas Malin (Jira)
[ 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_And_DateTimeField.patch Update the patch against the latest trunk version. And create one patch file for both patches. > 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_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_dateJs.zip, OFBIZ-4014_i18nTimepicker.patch, OFBIZ-4014_i18nTimepicker_And_DateTimeField.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 |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006193#comment-13006193 ] Jacques Le Roux commented on OFBIZ-4014: ---------------------------------------- Hi Sascha, I did not test yet, but why did you remove the line? <set field="localeFileNameComplete" type="String" value="${groovy: localeFileNameComplete.replace('_', '-')}"/> <!-- those files are build this way OOTB (ie a - not a _ between language and country --> > 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_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_dateJs.zip, OFBIZ-4014_i18nTimepicker.patch, OFBIZ-4014_i18nTimepicker_And_DateTimeField.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 |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006219#comment-13006219 ] Jacques Le Roux commented on OFBIZ-4014: ---------------------------------------- Sascha, Could you update your patch please, I can't apply it patching file framework/example/widget/example/FormWidgetExampleForms.xml patching file framework/common/widget/CommonScreens.xml patch: **** malformed patch at line 32: Index: framework/widget/templates/htmlFormMacroLibrary.ftl > 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_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_dateJs.zip, OFBIZ-4014_i18nTimepicker.patch, OFBIZ-4014_i18nTimepicker_And_DateTimeField.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 |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006358#comment-13006358 ] Sascha Rodekamp commented on OFBIZ-4014: ---------------------------------------- Hi Jacques, yea the patch is outdated. I will have a look this evening. I also search for a better alternative to organize the i18n file. It's rally a pain to add another date lib with new i18n definitions. Hard to maintain, a lot of overhead and we have also the problem with missing files. A better concept is needed ;) Cheers 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_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_dateJs.zip, OFBIZ-4014_i18nTimepicker.patch, OFBIZ-4014_i18nTimepicker_And_DateTimeField.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 |
In reply to this post by Nicolas Malin (Jira)
[ 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_And_DateTimeField.patch Hi Jacques, here is the updated patch. Not sure why i removed the line but i changed the i18n js file loading a little bit. But as i said we need a common solution for all these i18n files. > 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_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_ModelFormField_DateTimeField_i18n.patch, OFBIZ-4014_dateJs.zip, OFBIZ-4014_i18nTimepicker.patch, OFBIZ-4014_i18nTimepicker_And_DateTimeField.patch, OFBIZ-4014_i18nTimepicker_And_DateTimeField.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 |
Free forum by Nabble | Edit this page |