Skip to content

Commit

Permalink
Fix #683 - incorrect day selected when user timezone is in future.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed May 22, 2023
1 parent 2622a7a commit 252603b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -850,13 +850,7 @@ function attendance_construct_sessions_data_for_add($formdata, mod_attendance_st
}
} else {
$sess = new stdClass();
$sess->sessdate = make_timestamp(
date("Y", $formdata->sessiondate),
date("m", $formdata->sessiondate),
date("d", $formdata->sessiondate),
$formdata->sestime['starthour'],
$formdata->sestime['startminute']
);
$sess->sessdate = $sessiondate;
$sess->duration = $duration;
$sess->descriptionitemid = $formdata->sdescription['itemid'];
$sess->description = $formdata->sdescription['text'];
Expand Down

0 comments on commit 252603b

Please sign in to comment.