Author: vbaranov
Date: 2008-04-22 11:41:05 -0400 (Tue, 22 Apr 2008)
New Revision: 8073
Modified:
trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
Log:
http://jira.jboss.com/jira/browse/RF-3105
Modified: trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2008-04-22
15:17:58 UTC (rev 8072)
+++ trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2008-04-22
15:41:05 UTC (rev 8073)
@@ -77,6 +77,11 @@
private static String DEFAULT_TIME_VALUE = "hours:12,minutes:0";
/**
+ * Default pattern for defaultTime
+ */
+ private static String DEFAULT_TIME_PATTERN = "HH:mm";
+
+ /**
* Constant "hours"
*/
private static String HOURS_VALUE = "hours";
@@ -288,7 +293,7 @@
Pattern pattern = Pattern.compile(timePattern);
Matcher matcher = pattern.matcher(datePattern);
- String subTimePattern = null;
+ String subTimePattern = DEFAULT_TIME_PATTERN;
if(matcher.find()) {
subTimePattern = matcher.group().trim();
}