Browse Source

Correct timestamps in database for DST days

MOODLE_37_STABLE^2
Wiktor Wandachowicz 3 years ago
parent
commit
e3afc85fb3
  1. 8
      locallib.php

8
locallib.php

@ -704,7 +704,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'];

Loading…
Cancel
Save