diff options
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; } |