Skip to content

Commit

Permalink
MDL-73047 reportbuilder: add 'timecreated' to user reports
Browse files Browse the repository at this point in the history
  • Loading branch information
davosmith committed May 6, 2022
1 parent 1a74403 commit 55f08ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reportbuilder/classes/local/entities/user.php
Expand Up @@ -335,6 +335,7 @@ protected function get_user_fields(): array {
'confirmed' => new lang_string('confirmed', 'admin'),
'username' => new lang_string('username'),
'moodlenetprofile' => new lang_string('moodlenetprofile', 'user'),
'timecreated' => new lang_string('timecreated', 'core_reportbuilder'),
];
}

Expand All @@ -351,6 +352,7 @@ protected function get_user_field_type(string $userfield): int {
$fieldtype = column::TYPE_BOOLEAN;
break;
case 'lastaccess':
case 'timecreated':
$fieldtype = column::TYPE_TIMESTAMP;
break;
default:
Expand Down

0 comments on commit 55f08ad

Please sign in to comment.