svn commit: r700663 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/DateRange.java

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

svn commit: r700663 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/DateRange.java

adrianc
Author: adrianc
Date: Tue Sep 30 19:39:49 2008
New Revision: 700663

URL: http://svn.apache.org/viewvc?rev=700663&view=rev
Log:
Oops, previous DateRange change made it mutable.

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

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/DateRange.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/DateRange.java?rev=700663&r1=700662&r2=700663&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/DateRange.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/DateRange.java Tue Sep 30 19:39:49 2008
@@ -37,10 +37,10 @@
 
     public DateRange(Date start, Date end) {
         if (start != null) {
-            this.start = downcastTimestamp(start);
+            this.start = new Date(start.getTime());
         }
         if (end != null) {
-            this.end = downcastTimestamp(end);
+            this.end = new Date(end.getTime());
         }
     }