[
https://issues.apache.org/jira/browse/OFBIZ-1249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562554#action_12562554
]
Adrian Crum commented on OFBIZ-1249:
------------------------------------
David & Others,
The patch supports the value attribute, I just forgot to include it in the
syntax. It also supports the ${} macro in the locale and time-zone attributes.
So, the patch supports the following syntax:
<set-calendar field="toDate" from-field="fromDate" value="2007-12-31
15:47:00.000 | ${parameters.dateTime}"
years="+1" months="+1" ... millis="+1"
period-align-start="day | week | month | year"
period-align-end="day | week | month | year"
locale="en | ${parameters.locale}" time-zone="GMT | ${parameters.timeZone}"/>
Sorry about the confusion.
> To permit to to calculate on a DATE object in minilang
> ------------------------------------------------------
>
> Key: OFBIZ-1249
> URL: https://issues.apache.org/jira/browse/OFBIZ-1249
> Project: OFBiz
> Issue Type: New Feature
> Components: framework
> Affects Versions: SVN trunk
> Environment: all
> Reporter: Fabien Carrion
> Assignee: Jacques Le Roux
> Priority: Minor
> Fix For: SVN trunk
>
> Attachments: calculate_date_diff.patch, set_calendar.patch,
> set_calendar.patch
>
>
> This patch lets use the calculate function in the minilang service function
> with java.util.Date and java.sql.Date object.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.