We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 941227e + 255c461 commit c2c1e11Copy full SHA for c2c1e11
server/src/test/java/org/apache/cloudstack/vm/schedule/VMSchedulerImplTest.java
@@ -238,7 +238,7 @@ public void testScheduleNextJobScheduleFutureScheduleWithTimeZoneChecks() throws
238
Date expectedScheduledTime = Date.from(zonedDateTime.toInstant());
239
240
if (expectedScheduledTime.before(startDate)) {
241
- expectedScheduledTime = DateUtils.addDays(expectedScheduledTime, 1);
+ expectedScheduledTime = Date.from(zonedDateTime.plusDays(1).toInstant());
242
}
243
244
Date actualScheduledTime = vmScheduler.scheduleNextJob(vmSchedule, new Date());
0 commit comments