Browse Source
Merge pull request #563 from wiktorwandachowicz/MOODLE_38_536-dst
Correct timestamps in database for DST days
MOODLE_38_STABLE
Dan Marsden
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
1 deletions
-
locallib.php
|
@ -839,7 +839,13 @@ function attendance_construct_sessions_data_for_add($formdata, mod_attendance_st |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
$sess = new stdClass(); |
|
|
$sess = new stdClass(); |
|
|
$sess->sessdate = $sessiondate; |
|
|
$sess->sessdate = make_timestamp( |
|
|
|
|
|
date("Y", $formdata->sessiondate), |
|
|
|
|
|
date("m", $formdata->sessiondate), |
|
|
|
|
|
date("d", $formdata->sessiondate), |
|
|
|
|
|
$formdata->sestime['starthour'], |
|
|
|
|
|
$formdata->sestime['startminute'] |
|
|
|
|
|
); |
|
|
$sess->duration = $duration; |
|
|
$sess->duration = $duration; |
|
|
$sess->descriptionitemid = $formdata->sdescription['itemid']; |
|
|
$sess->descriptionitemid = $formdata->sdescription['itemid']; |
|
|
$sess->description = $formdata->sdescription['text']; |
|
|
$sess->description = $formdata->sdescription['text']; |
|
|