mirror of
https://github.com/moodle/moodle.git
synced 2025-05-05 15:57:04 +02:00
Merge branch 'MDL-79648-master' of https://github.com/SergioComeron/moodle
This commit is contained in:
commit
2bd28efcbf
@ -409,6 +409,7 @@ class format_weeks extends core_courseformat\base {
|
||||
|
||||
// Create a DateTime object for the start date.
|
||||
$startdateobj = new DateTime("@$startdate");
|
||||
$startdateobj->setTimezone(core_date::get_user_timezone_object());
|
||||
|
||||
// Calculate the interval for one week.
|
||||
$oneweekinterval = new DateInterval('P7D');
|
||||
|
Loading…
x
Reference in New Issue
Block a user