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

InputDate doesn't parses submitted seconds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.2
    • None
    • None
    • 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

            mmarinschek Martin Marinschek
            weber Volker Weber
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: