Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-339

InputDate doesn't parses submitted seconds

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      any

      Description

      Implement to parse the submitted seconds seems to be forgotten.

      I have patched this, the diff follows:

      Index: src/java/org/apache/myfaces/custom/date/HtmlInputDate.java
      ===================================================================
      — src/java/org/apache/myfaces/custom/date/HtmlInputDate.java (Revision 292164)
      +++ src/java/org/apache/myfaces/custom/date/HtmlInputDate.java (Arbeitskopie)
      @@ -209,6 +209,7 @@
      tempCalendar.set(Calendar.YEAR,Integer.parseInt(year));
      tempCalendar.set(Calendar.HOUR_OF_DAY,Integer.parseInt(hours));
      tempCalendar.set(Calendar.MINUTE,Integer.parseInt(minutes));
      + tempCalendar.set(Calendar.SECOND,Integer.parseInt(seconds));

      return tempCalendar.getTime();
      }

        Attachments

          Activity

            People

            • Assignee:
              mmarinschek Martin Marinschek
              Reporter:
              volkerweber Volker Weber
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: