Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4319

Display dateTime field with input method time-dropdown not use context value to display hour and minutes

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None
    • Sprint:
      Bug Crush Event - 21/2/2015

      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

        Attachments

        1. OFBIZ-4319.patch
          5 kB
          Nicolas Malin
        2. OFBIZ-4319.patch
          5 kB
          Nicolas Malin
        3. DateTime-time-dropdown-without-path.png
          45 kB
          Nicolas Malin
        4. DateTime-time-dropdown-with-path.png
          45 kB
          Nicolas Malin

          Activity

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              soledad Nicolas Malin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified