You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2011/11/25 03:59:40 UTC
svn commit: r1206043 -
/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilDateTime.java
Author: hansbak
Date: Fri Nov 25 02:59:40 2011
New Revision: 1206043
URL: http://svn.apache.org/viewvc?rev=1206043&view=rev
Log:
Revert 1205710 on a comment from Adrian
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=1206043&r1=1206042&r2=1206043&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 Fri Nov 25 02:59:40 2011
@@ -823,9 +823,6 @@ public class UtilDateTime {
}
public static Timestamp getDayEnd(Timestamp stamp, Long daysLater, TimeZone timeZone, Locale locale) {
- if (daysLater == null) {
- daysLater = Long.valueOf(0);
- }
Calendar tempCal = toCalendar(stamp, timeZone, locale);
tempCal.set(tempCal.get(Calendar.YEAR), tempCal.get(Calendar.MONTH), tempCal.get(Calendar.DAY_OF_MONTH), 23, 59, 59);
tempCal.add(Calendar.DAY_OF_MONTH, daysLater.intValue());