Author: apatel
Date: Wed Jul 8 15:55:12 2009
New Revision: 792196
URL:
http://svn.apache.org/viewvc?rev=792196&view=revLog:
Removed method I added earlier. Solution already exists in ExpressionUiHelper.java. Adrian, Thanks for reporting and helping locate existing method.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilDateTime.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilDateTime.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilDateTime.java?rev=792196&r1=792195&r2=792196&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilDateTime.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilDateTime.java Wed Jul 8 15:55:12 2009
@@ -957,27 +957,6 @@
}
/**
- * Returns a List of Maps of month number and name entries - suitable for select inputs.
- *
- * @param locale
- * @return List of month number, name
- */
- public static List<Map<String,String>> getMonths(Locale locale) {
- Calendar tempCal = Calendar.getInstance(locale);
- tempCal.set(Calendar.MONTH, Calendar.JANUARY);
- SimpleDateFormat dateFormat = new SimpleDateFormat("MMMM", locale);
- List<Map<String,String>> resultList = new ArrayList<Map<String,String>>();
- for (int i = Calendar.JANUARY; i <= tempCal.getActualMaximum(Calendar.MONTH); i++) {
- Map<String,String> monthEntry = new FastMap<String,String>();
- monthEntry.put("monthNumber",String.valueOf(tempCal.get(Calendar.MONTH)));
- monthEntry.put("monthName",dateFormat.format(tempCal.getTime()));
- resultList.add(monthEntry);
- tempCal.roll(Calendar.MONTH, 1);
- }
- return resultList;
- }
-
- /**
* Returns an initialized DateFormat object.
*
* @param dateFormat