diff options
author | Udo Walter | 2019-07-16 16:06:41 +0200 |
---|---|---|
committer | Udo Walter | 2019-07-16 16:06:41 +0200 |
commit | 41ff429b1f39f107565365c206cfd6e11c875462 (patch) | |
tree | 567961d62970e3079ef7ce837a7215fc11b45a46 /modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php | |
parent | [inc/Render] Remove legacy functions (diff) | |
download | slx-admin-41ff429b1f39f107565365c206cfd6e11c875462.tar.gz slx-admin-41ff429b1f39f107565365c206cfd6e11c875462.tar.xz slx-admin-41ff429b1f39f107565365c206cfd6e11c875462.zip |
[locationinfo] Add ability to select the start day of the calendar
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php index 7f84dd92..4664a011 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php @@ -373,9 +373,10 @@ class CourseBackend_HisInOne extends CourseBackend private function getCurrentWeekDates() { $returnValue = array(); - $startDate = time(); - for ($i = 0; $i < 7; $i++) { - $returnValue[] = date('Y-m-d', strtotime("+{$i} day 12:00", $startDate)); + $date = date('Y-m-d', strtotime('last Monday')); + for ($i = 0; $i < 14; $i++) { + $returnValue[] = $date; + $date = date('Y-m-d', strtotime($date.' +1 day')); } return $returnValue; } |