wido commented on a change in pull request #2266: Kvm host RAM overprovisioning URL: https://github.com/apache/cloudstack/pull/2266#discussion_r138578709
########## 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: I wouldn't fix this in the same PR. Probably a separate PR for this fix would be better. It's not related to this change. ---------------------------------------------------------------- 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