Author: erwan
Date: Wed Jan  6 16:20:27 2010
New Revision: 896504

URL: http://svn.apache.org/viewvc?rev=896504&view=rev
Log:
Creating a calendar event was starting at 12:00 even if selecting a start time 
before

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java?rev=896504&r1=896503&r2=896504&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java Wed Jan  6 
16:20:27 2010
@@ -1204,7 +1204,7 @@
             if (date == null || date.length() < 10) return null;
             if (UtilValidate.isEmpty(hour)) return null;
             if (UtilValidate.isEmpty(minutes)) return null;
-            boolean isTwelveHour = UtilValidate.isEmpty(ampm);
+            boolean isTwelveHour = UtilValidate.isNotEmpty(ampm);
 
             // create the timestamp from the data
             try {


Reply via email to