Skip to content

Commit 7480cf6

Browse files
committed
adjust demo page to deal with hourlist filter
1 parent 36e209b commit 7480cf6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

classes/demo_table.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@
3535
*/
3636
class demo_table extends wunderbyte_table {
3737

38+
/**
39+
* Decodes the Unix Timestamp
40+
*
41+
* @param stdClass $values
42+
* @return void
43+
*/
44+
public function col_timemodified($values) {
45+
return userdate($values->timemodified, get_string('strftimedatetimeshort'));
46+
}
47+
3848
/**
3949
* Decodes the Unix Timestamp
4050
*

classes/output/demo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ private function render_table_1() {
9090
'email' => get_string('email'),
9191
'action' => get_string('action'),
9292
'department' => get_string('department'),
93+
'timemodified' => get_string('modified'),
9394

9495
];
9596

0 commit comments

Comments
 (0)