[jira] Commented: (OFBIZ-392) Wrong week numbers in the fixed asset calendar

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-392) Wrong week numbers in the fixed asset calendar

Nicolas Malin (Jira)

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

Adrian Crum commented on OFBIZ-392:
-----------------------------------

If the screen you're looking at is using a Freemarker template, then the problem is due to how Freemarker handles date transforms. The Freemarker date transforms default to the locale of the server.

The solution is to eliminate the date transforms from the ftl file and do the transforms in a bsh or similar. Utilize the Java Calendar, Locale, and DateFormat classes to create strings that are then used in the ftl file.


> Wrong week numbers in the fixed asset calendar
> ----------------------------------------------
>
>                 Key: OFBIZ-392
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-392
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: accounting
>            Reporter: Bilgin Ibryam
>         Assigned To: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: UtilDateTime-reviewed.patch, UtilDateTime.patch
>
>
> Week numbers in the fixed asset calendar are not correct. So i fixed the problematic function and also added a possibility for choosing the week start day (Sunday or Monday).
> Regards,
> Bilgin

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.