Error in display of date-time field
----------------------------------- Key: OFBIZ-4306 URL: https://issues.apache.org/jira/browse/OFBIZ-4306 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: SVN trunk Reporter: Gaudin Pierre I meet an error of formatting of date during the use of field date-time. I am on the screen: https: // demo-trunk.ofbiz.apache.org/projectmgr/control/EditProjectTasks?ProjectId=9000 login as admin My local is fr_FR and the format is dd/MM/yyyy. If I change the date with the calendar and if the day of the month in the date is > 12 then the display format is : dd/MM/yyyy If I change the date with the calendar and if the day of the month in the date is < = 12 then the display format is: MM/dd/yyyy There is thus an error during the formatting(layout) of date. By looking at this error I found that the problem came from the macro ftl: renderDateTimeField more exactly it is during conversion to string that the error is produced: The dateObj Var = Date.parse ( initDate ); The formatedObj Var = dateObj.toString ( dateFormat ); It is the toString method that is at the origin of this inversion. Somebody knows how to fix this problem? Thank you in advance, Pierre -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ https://issues.apache.org/jira/browse/OFBIZ-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gaudin Pierre updated OFBIZ-4306: --------------------------------- Description: I meet an error of formatting of date during the use of field date-time. I am on the screen: https: // demo-trunk.ofbiz.apache.org/projectmgr/control/EditProjectTasks?ProjectId=9000 login as admin My local is fr_FR and the format is dd/MM/yyyy. If I change the date with the calendar and if the day of the month in the date is > 12 then the display format is : dd/MM/yyyy If I change the date with the calendar and if the day of the month in the date is < = 12 then the display format is: MM/dd/yyyy There is thus an error during the formatting of date. By looking at this error I found that the problem came from the macro ftl: renderDateTimeField more exactly it is during conversion to string that the error is produced: dateObj Var = Date.parse ( initDate ); formatedObj Var = dateObj.toString ( dateFormat ); It is the toString method that is at the origin of this inversion. in both cases dateFormat is always dd/MM/yyyy : dateObj.toString ( dd/MM/yyyy ); Somebody knows how to fix this problem? Thank you in advance, Pierre was: I meet an error of formatting of date during the use of field date-time. I am on the screen: https: // demo-trunk.ofbiz.apache.org/projectmgr/control/EditProjectTasks?ProjectId=9000 login as admin My local is fr_FR and the format is dd/MM/yyyy. If I change the date with the calendar and if the day of the month in the date is > 12 then the display format is : dd/MM/yyyy If I change the date with the calendar and if the day of the month in the date is < = 12 then the display format is: MM/dd/yyyy There is thus an error during the formatting(layout) of date. By looking at this error I found that the problem came from the macro ftl: renderDateTimeField more exactly it is during conversion to string that the error is produced: The dateObj Var = Date.parse ( initDate ); The formatedObj Var = dateObj.toString ( dateFormat ); It is the toString method that is at the origin of this inversion. Somebody knows how to fix this problem? Thank you in advance, Pierre > Error in display of date-time field > ----------------------------------- > > Key: OFBIZ-4306 > URL: https://issues.apache.org/jira/browse/OFBIZ-4306 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Gaudin Pierre > > I meet an error of formatting of date during the use of field date-time. > I am on the screen: https: // demo-trunk.ofbiz.apache.org/projectmgr/control/EditProjectTasks?ProjectId=9000 login as admin > My local is fr_FR and the format is dd/MM/yyyy. > If I change the date with the calendar and if the day of the month in the date is > 12 then the display format is : dd/MM/yyyy > If I change the date with the calendar and if the day of the month in the date is < = 12 then the display format is: MM/dd/yyyy > There is thus an error during the formatting of date. By looking at this error I found that the problem came from the macro ftl: renderDateTimeField more exactly it is during conversion to string that the error is produced: > dateObj Var = Date.parse ( initDate ); > formatedObj Var = dateObj.toString ( dateFormat ); > It is the toString method that is at the origin of this inversion. > in both cases dateFormat is always dd/MM/yyyy : dateObj.toString ( dd/MM/yyyy ); > Somebody knows how to fix this problem? > Thank you in advance, > Pierre -- 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-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Scott Gray reassigned OFBIZ-4306: --------------------------------- Assignee: Scott Gray > Error in display of date-time field > ----------------------------------- > > Key: OFBIZ-4306 > URL: https://issues.apache.org/jira/browse/OFBIZ-4306 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Gaudin Pierre > Assignee: Scott Gray > > I meet an error of formatting of date during the use of field date-time. > I am on the screen: https: // demo-trunk.ofbiz.apache.org/projectmgr/control/EditProjectTasks?ProjectId=9000 login as admin > My local is fr_FR and the format is dd/MM/yyyy. > If I change the date with the calendar and if the day of the month in the date is > 12 then the display format is : dd/MM/yyyy > If I change the date with the calendar and if the day of the month in the date is < = 12 then the display format is: MM/dd/yyyy > There is thus an error during the formatting of date. By looking at this error I found that the problem came from the macro ftl: renderDateTimeField more exactly it is during conversion to string that the error is produced: > dateObj Var = Date.parse ( initDate ); > formatedObj Var = dateObj.toString ( dateFormat ); > It is the toString method that is at the origin of this inversion. > in both cases dateFormat is always dd/MM/yyyy : dateObj.toString ( dd/MM/yyyy ); > Somebody knows how to fix this problem? > Thank you in advance, > Pierre -- 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-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Scott Gray closed OFBIZ-4306. ----------------------------- Resolution: Fixed Fix Version/s: SVN trunk Thanks Pierre, fixed in r1139521 > Error in display of date-time field > ----------------------------------- > > Key: OFBIZ-4306 > URL: https://issues.apache.org/jira/browse/OFBIZ-4306 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Gaudin Pierre > Assignee: Scott Gray > Fix For: SVN trunk > > > I meet an error of formatting of date during the use of field date-time. > I am on the screen: https: // demo-trunk.ofbiz.apache.org/projectmgr/control/EditProjectTasks?ProjectId=9000 login as admin > My local is fr_FR and the format is dd/MM/yyyy. > If I change the date with the calendar and if the day of the month in the date is > 12 then the display format is : dd/MM/yyyy > If I change the date with the calendar and if the day of the month in the date is < = 12 then the display format is: MM/dd/yyyy > There is thus an error during the formatting of date. By looking at this error I found that the problem came from the macro ftl: renderDateTimeField more exactly it is during conversion to string that the error is produced: > dateObj Var = Date.parse ( initDate ); > formatedObj Var = dateObj.toString ( dateFormat ); > It is the toString method that is at the origin of this inversion. > in both cases dateFormat is always dd/MM/yyyy : dateObj.toString ( dd/MM/yyyy ); > Somebody knows how to fix this problem? > Thank you in advance, > Pierre -- 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-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux updated OFBIZ-4306: ----------------------------------- Fix Version/s: Release Branch 11.04 R11.04 at r1139756 > Error in display of date-time field > ----------------------------------- > > Key: OFBIZ-4306 > URL: https://issues.apache.org/jira/browse/OFBIZ-4306 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Gaudin Pierre > Assignee: Scott Gray > Fix For: Release Branch 11.04, SVN trunk > > > I meet an error of formatting of date during the use of field date-time. > I am on the screen: https: // demo-trunk.ofbiz.apache.org/projectmgr/control/EditProjectTasks?ProjectId=9000 login as admin > My local is fr_FR and the format is dd/MM/yyyy. > If I change the date with the calendar and if the day of the month in the date is > 12 then the display format is : dd/MM/yyyy > If I change the date with the calendar and if the day of the month in the date is < = 12 then the display format is: MM/dd/yyyy > There is thus an error during the formatting of date. By looking at this error I found that the problem came from the macro ftl: renderDateTimeField more exactly it is during conversion to string that the error is produced: > dateObj Var = Date.parse ( initDate ); > formatedObj Var = dateObj.toString ( dateFormat ); > It is the toString method that is at the origin of this inversion. > in both cases dateFormat is always dd/MM/yyyy : dateObj.toString ( dd/MM/yyyy ); > Somebody knows how to fix this problem? > Thank you in advance, > Pierre -- 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-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13055390#comment-13055390 ] Gaudin Pierre commented on OFBIZ-4306: -------------------------------------- Many thanks, that fixe the issue! Pierre > Error in display of date-time field > ----------------------------------- > > Key: OFBIZ-4306 > URL: https://issues.apache.org/jira/browse/OFBIZ-4306 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Gaudin Pierre > Assignee: Scott Gray > Fix For: Release Branch 11.04, SVN trunk > > > I meet an error of formatting of date during the use of field date-time. > I am on the screen: https: // demo-trunk.ofbiz.apache.org/projectmgr/control/EditProjectTasks?ProjectId=9000 login as admin > My local is fr_FR and the format is dd/MM/yyyy. > If I change the date with the calendar and if the day of the month in the date is > 12 then the display format is : dd/MM/yyyy > If I change the date with the calendar and if the day of the month in the date is < = 12 then the display format is: MM/dd/yyyy > There is thus an error during the formatting of date. By looking at this error I found that the problem came from the macro ftl: renderDateTimeField more exactly it is during conversion to string that the error is produced: > dateObj Var = Date.parse ( initDate ); > formatedObj Var = dateObj.toString ( dateFormat ); > It is the toString method that is at the origin of this inversion. > in both cases dateFormat is always dd/MM/yyyy : dateObj.toString ( dd/MM/yyyy ); > Somebody knows how to fix this problem? > Thank you in advance, > Pierre -- 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 |