[
https://issues.apache.org/jira/browse/OFBIZ-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897332#action_12897332
]
Nicolas Malin commented on OFBIZ-3843:
--------------------------------------
Jacques I found the problem, not the solution :(
When date-time is rendered, the value is find in context by function
ModelFormField.getEntry() at line 674. In this function, tha value pass to an
encoder :
if (this.getEncodeOutput() && returnValue != null) {
StringUtil.SimpleEncoder simpleEncoder = (StringUtil.SimpleEncoder)
context.get("simpleEncoder");
if (simpleEncoder != null) {
returnValue = simpleEncoder.encode(returnValue);
}
}
Before encode : 11/08/2010 15:54:28
After encode : 11/08/2010 15:54:28
In function MacroRenderedField.renderDateTimeField (line491) this value is
trunked by a maxsize but with encoding system, the result is wrong =>
11/08/2010 15&# convert by navigator to 11/08/2100 15 &#
I don't understand why encoder is present in ModelFormField. A solution is
force ModelFormField.encodeOuput to false for DateTimeField, DateFindField
I submit a new path asap.
Nicolas
> Localized date format for end user
> ----------------------------------
>
> Key: OFBIZ-3843
> URL: https://issues.apache.org/jira/browse/OFBIZ-3843
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Nicolas Malin
> Priority: Minor
> Attachments: date-localized.patch, With the patch.jpg, Without patch
> (in trunk demo).jpg
>
>
> Many French end users don't want to use this date format : yyyy-mm-dd.
> To make a better user friendly OFBiz interface, I've added the possibility to
> configure in general.properties a localized date format. OFBiz use localized
> format (as dd/mm/yyyy) for all interactions with users but keep universal
> format for its framework. It's then possible to set date with unniversal or
> localized format.
> What's working :
> * Dates in screen engine : display, date-find, date-time
> * performFind
> * Service call
> Know problem :
> * I don't find how to configure js calendar to support this functionality
> It's possible that my solution isn't the best one to do that. But I'm open to
> all comment
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.