svn commit: r589862 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilDateTime.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r589862 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilDateTime.java

jleroux@apache.org
Author: jleroux
Date: Mon Oct 29 14:22:40 2007
New Revision: 589862

URL: http://svn.apache.org/viewvc?rev=589862&view=rev
Log:
A patch from Markus Stude "UtilDateTime.toDate(int, int, int, int, int, int) does not initialise milisecond part of created date" (https://issues.apache.org/jira/browse/OFBIZ-1363) - OFBIZ-1363

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

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilDateTime.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilDateTime.java?rev=589862&r1=589861&r2=589862&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilDateTime.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilDateTime.java Mon Oct 29 14:22:40 2007
@@ -581,6 +581,7 @@
 
         try {
             calendar.set(year, month - 1, day, hour, minute, second);
+            calendar.set(Calendar.MILLISECOND, 0);
         } catch (Exception e) {
             return null;
         }