[
https://issues.apache.org/jira/browse/OFBIZ-4319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicolas Malin updated OFBIZ-4319:
---------------------------------
Description:
If you define a dateTime field that like :
<field name="estimatedStartDate"><date-time input-method="time-dropdown"
step="10"/></field>
and pass in context : estimatedStartDate = "2011-06-016 20:30:00"
when you edit the form, estimatedStartDate take the good value 2011-06-016 on
date, but take nowTimestamps.hour for dropdown hour instead of 20 and
nowTimestamps.minutes for dropdown minutes instead of 30
To test the patch :
* Apply patch (of course ;) )
* build with ant
* go to ofbiz example component with given date that like :
"https://localhost:8443/example/control/FormWidgetExamples?field4=2001-01-01
02:21:000"
* the field 4 must have hour to 02 and minutes to 21
I create 2 screenshots : before and after correction.
Nicolas
was:
If you define a dateTime field that like :
<field name="estimatedStartDate"><date-time input-method="time-dropdown"
step="10"/></field>
and pass in context : estimatedStartDate = "2011-06-016 20:30:00"
when you edit the form, estimatedStartDate take the good value 2011-06-016 on
date, but take nowTimestamps.hour for dropdown hour instead of 20 and
nowTimestamps.minutes for dropdown minutes instead of 30
I test patch :
* Apply patch (of course ;) )
* build with ant
* go to ofbiz example component with given date that like :
"https://localhost:8443/example/control/FormWidgetExamples?field4=2001-01-01
02:21:000"
* the field 4 must have hour to 02 and minutes to 21
I create 2 screeshot before and after correction.
Nicolas
> Display dateTime field with input method time-dropdown not use context value
> to display hour and minutes
> --------------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-4319
> URL: https://issues.apache.org/jira/browse/OFBIZ-4319
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Nicolas Malin
> Priority: Minor
> Fix For: SVN trunk
>
> Attachments: DateTime-time-dropdown-with-path.png,
> DateTime-time-dropdown-without-path.png, OFBIZ-4319.patch, OFBIZ-4319.patch
>
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> If you define a dateTime field that like :
> <field name="estimatedStartDate"><date-time input-method="time-dropdown"
> step="10"/></field>
> and pass in context : estimatedStartDate = "2011-06-016 20:30:00"
> when you edit the form, estimatedStartDate take the good value 2011-06-016 on
> date, but take nowTimestamps.hour for dropdown hour instead of 20 and
> nowTimestamps.minutes for dropdown minutes instead of 30
> To test the patch :
> * Apply patch (of course ;) )
> * build with ant
> * go to ofbiz example component with given date that like :
> "https://localhost:8443/example/control/FormWidgetExamples?field4=2001-01-01
> 02:21:000"
> * the field 4 must have hour to 02 and minutes to 21
> I create 2 screenshots : before and after correction.
> Nicolas
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira