bwsw commented on a change in pull request #2266: Kvm host RAM overprovisioning URL: https://github.com/apache/cloudstack/pull/2266#discussion_r138579688
########## File path: plugins/database/quota/src/org/apache/cloudstack/api/response/QuotaResponseBuilderImpl.java ########## @@ -523,14 +523,7 @@ public Date startOfNextDay(Date dt) { @Override public Date startOfNextDay() { - Calendar c = Calendar.getInstance(); - c.setTime(new Date()); - c.add(Calendar.DATE, 1); - c.set(Calendar.HOUR, 0); - c.set(Calendar.MINUTE, 0); - c.set(Calendar.SECOND, 0); - c.set(Calendar.MILLISECOND, 0); - return c.getTime(); + return startOfNextDay(new Date()); Review comment: @wido As today our Java guys found bug in Quota plugin related to the code above I ask them to fix it and we send a different PR for it. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services