Skip to content

Commit

Permalink
fix: Return timestamps in unix format rather than milliseconds
Browse files Browse the repository at this point in the history
Co-authored-by: Joas Schilling <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc and nickvergessen authored Dec 10, 2024
1 parent f102154 commit f00a83d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/provisioning_api/lib/Controller/AUserData.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ protected function getUserData(string $userId, bool $includeScopes = false): ?ar

// Find the data
$data['id'] = $targetUserObject->getUID();
$data['firstLogin'] = $targetUserObject->getFirstLogin() * 1000;
$data['firstLoginTimestamp'] = $targetUserObject->getFirstLogin();
$data['lastLoginTimestamp'] = $targetUserObject->getLastLogin();
$data['lastLogin'] = $targetUserObject->getLastLogin() * 1000;
$data['backend'] = $targetUserObject->getBackendClassName();
$data['subadmin'] = $this->getUserSubAdminGroupsData($targetUserObject->getUID());
Expand Down

0 comments on commit f00a83d

Please sign in to comment.