diff options
author | Udo Walter | 2019-07-18 16:01:05 +0200 |
---|---|---|
committer | Udo Walter | 2019-07-18 16:01:05 +0200 |
commit | 96395b8c138d3ab22588c585e3d346692c90b12a (patch) | |
tree | 6d9e00aab5939807569ea6d24b88c02c18951c1c /modules-available/locationinfo | |
parent | [roomplanner] First prototype of composed room editor (diff) | |
download | slx-admin-96395b8c138d3ab22588c585e3d346692c90b12a.tar.gz slx-admin-96395b8c138d3ab22588c585e3d346692c90b12a.tar.xz slx-admin-96395b8c138d3ab22588c585e3d346692c90b12a.zip |
[locationinfo] increased cached date span for backends: dummy, davinci and exchange
Diffstat (limited to 'modules-available/locationinfo')
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 = []; |