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.
1 parent e333ce9 commit 255c461Copy full SHA for 255c461
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