Skip to content

Commit

Permalink
Attendance: update attendance log to include date and time (#1909)
Browse files Browse the repository at this point in the history
Co-authored-by: Ali Alam <[email protected]>
  • Loading branch information
ali-ichk and Ali Alam authored Feb 28, 2025
1 parent 573e2f2 commit a66eee1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/Attendance/attendance_take_byPerson.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@
if (empty($log['timestampTaken'])) return Format::small(__('N/A'));

return $currentDate != substr($log['timestampTaken'], 0, 10)
? Format::dateReadable($log['timestampTaken'])
: Format::dateReadable($log['timestampTaken']);
? Format::dateTimeReadable($log['timestampTaken'])
: Format::dateTimeReadable($log['timestampTaken']);
});

$table->addColumn('direction', __('Attendance'))
Expand Down Expand Up @@ -191,7 +191,6 @@
if (count($logs) + $classLogCount == 0) {
$schoolTable->addMetaData('blankSlate', __('There is currently no attendance data today for the selected student.'));
}

echo $schoolTable->render($logs);

// Class Attendance
Expand Down

0 comments on commit a66eee1

Please sign in to comment.