Skip to content

Commit

Permalink
occ: Revert all changes to Info.php
Browse files Browse the repository at this point in the history
Signed-off-by: Jore <contact@jore.cc>
  • Loading branch information
nooblag authored and AndyScherzinger committed Aug 6, 2024
1 parent cc92bdb commit 0298955
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions core/Command/User/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln('<error>user not found</error>');
return 1;
}

$groups = $this->groupManager->getUserGroupIds($user);

if ($user->getLastLogin() == 0) {
$lastseen = "never";
} else {
$lastseen = date('Y-m-d H:i:s T', $user->getLastLogin());
}

$data = [
'user_id' => $user->getUID(),
'display_name' => $user->getDisplayName(),
Expand All @@ -64,11 +56,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
'groups' => $groups,
'quota' => $user->getQuota(),
'storage' => $this->getStorageInfo($user),
'last_seen' => $lastseen,
'last_seen' => date(\DateTimeInterface::ATOM, $user->getLastLogin()), // ISO-8601
'user_directory' => $user->getHome(),
'backend' => $user->getBackendClassName()
];

$this->writeArrayInOutputFormat($input, $output, $data);
return 0;
}
Expand Down

0 comments on commit 0298955

Please sign in to comment.