diff options
3 files changed, 6 insertions, 6 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php index 0307a044..07c8457d 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php @@ -99,8 +99,8 @@ class CourseBackend_Davinci extends CourseBackend public function fetchSchedulesInternal($requestedRoomIds) { - $startDate = new DateTime('today 0:00'); - $endDate = new DateTime('+7 days 0:00'); + $startDate = new DateTime('last Monday 0:00'); + $endDate = new DateTime('+14 days 0:00'); $lower = (int)$startDate->format('Ymd'); $upper = (int)$endDate->format('Ymd'); $schedules = []; diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php index 5807a4ff..2cb2be18 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php @@ -104,8 +104,8 @@ class CourseBackend_Dummy extends CourseBackend } // Normal $x = array(); - $time = strtotime('today'); - $end = strtotime('+7 days', $time); + $time = strtotime('last Monday'); + $end = strtotime('+14 days', $time); srand(crc32($id) ^ $time); $last = $time; do { diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php index ffbca17f..60561586 100755 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php @@ -157,8 +157,8 @@ class CourseBackend_Exchange extends CourseBackend */ protected function fetchSchedulesInternal($requestedRoomIds) { - $startDate = new DateTime('today 0:00'); - $endDate = new DateTime('+7 days 0:00'); + $startDate = new DateTime('last Monday 0:00'); + $endDate = new DateTime('+14 days 0:00'); $client = $this->getClient(); $schedules = []; |