Merge branch 'MDL-79648-master' of https://github.com/SergioComeron/moodle

This commit is contained in:
Huong Nguyen 2023-11-15 09:13:21 +07:00
commit 2bd28efcbf

View File

@ -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');