You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ca...@apache.org on 2007/05/18 15:26:14 UTC

svn commit: r539461 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java

Author: cagatay
Date: Fri May 18 06:26:13 2007
New Revision: 539461

URL: http://svn.apache.org/viewvc?view=rev&rev=539461
Log:
Fixed TOMAHAWK-964, preserve the user supplied date's seconds when the type is short_time

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java?view=diff&rev=539461&r1=539460&r2=539461
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java Fri May 18 06:26:13 2007
@@ -296,7 +296,7 @@
 	            	}
             		tempCalendar.set(Calendar.MINUTE,Integer.parseInt(minutes));
             		
-            		if (type.equals("full") || type.equals("time")) {
+            		if (type.equals("full") || type.equals("time") || type.equals("short_time")) {
 	            		tempCalendar.set(Calendar.SECOND,Integer.parseInt(seconds));
             		}
             	}