Changed events.returntime to timestamp format; modified functions.php and attendance.php accordingly