Moodle plugins directory: Auto Attendance Block | Moodle.org
Auto Attendance Block
Blocks ::: block_autoattend
Maintained by Fumikazu Iseki
Part of set Auto attendance.
This autoattend block is modification of the Attendance block by Mr. Dmitry Pupinin (v1.0.8, 2007).
In addition to the original manual mode, automatic attendance mode (from the access log of Moodle) and semi-automatic attendance mode (user clicks a link) are also possible.
Latest release:
987 sites
383 downloads
59 fans
Current versions available: 1
These Auto Attendance block and module are modification of the Attendance block/module of Mr. Dmitry Pupinin (v1.0.8, 2007).
In addition to the manual attendance mode to take attendance manually the original, automatic attendance mode (from the access log of Moodle) and semi-automatic attendance mode (user clicks a link) are also possible.
I strongly recommend a combination of Auto Attendance block (autoattend) and Auto Attendance module (autoattendmod).
Useful links
Contributors
Fumikazu Iseki (Lead maintainer)
Please login to view contributors details and/or to contact them
That is certainly incorrect.
I have now fixed the problem.
To fix it, please uncheck "Use Timeoffset of the Timezone" in the block settings or download a newer version using SVN.
# svn co http://www.nsl.tuis.ac.jp/svn/php/autoattend/trunk/ autoattend
Thanks.
Correct code
--------------------------------------------------------------
$TIME_OFFSET = 0;
if (property_exists($CFG, 'use_timeoffset')) {
if ($CFG->use_timeoffset) {
//
$ver = jbxl_get_moodle_version();
if ($ver>=2.7) {
if (is_numeric($CFG->timezone)) {
$TIME_OFFSET = $CFG->timezone*ONE_HOUR_TIME;
}
else {
$dtz = new DateTimeZone($CFG->timezone);
$now = new DateTime("now", $dtz);
$TIME_OFFSET = $dtz->getOffset($now);
}
}
} else {
if (jbxl_is_admin($USER->id)) {
if (is_numeric($USER->timezone) && $USER->timezone!=99) {
$TIME_OFFSET = $USER->timezone*ONE_HOUR_TIME;
}
else if (is_numeric($CFG->timezone) && $CFG->timezone!=99) {
$TIME_OFFSET = $CFG->timezone*ONE_HOUR_TIME;
}
}
}
}
}
Translated with www.DeepL.com/Translator (free version)
Please be more specific.
Do you mean that when you checked the summer time setting in the attendance module, and attendance block is not reflected?
Thanks.
After investigating the incorrect time issue, I found that the above code (fix) is still not correct, since if I comment it out, the time which is used by the module is correct again.
"User List" -> click user -> top right "Activity report"
Could anyone update the "Source control URL" to https://github.com/moodle-fumihax/block_autoattend ?
Thanks.
I changed it, too.
Debugging output enabled
ZIP /Applications/MAMP/data/moodle402/temp/tool_installaddon/65c4b370eafc8/plugin.zip
Validating block_autoattend ... Error
[Error] Extracted file not found [{"file":"autoattend\/.git\/objects\/info\/"}]
Installation aborted due to validation failure
I have re-update them now.
Thanks.