diff options
author | nooblag <contact@jore.cc> | 2024-08-02 13:58:41 +1000 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-08-07 09:33:09 +0200 |
commit | 5ec3a7fcef6920d37ec09549dd8326235c48dbb0 (patch) | |
tree | b3640b26ded6698ab0f1d8a5d68df44e6dc60b28 | |
parent | 96638fd6b2544043b48f9c64eb11033086cf1685 (diff) | |
download | nextcloud-server-5ec3a7fcef6920d37ec09549dd8326235c48dbb0.tar.gz nextcloud-server-5ec3a7fcef6920d37ec09549dd8326235c48dbb0.zip |
occ: Revert all changes to Info.php
Signed-off-by: Jore <contact@jore.cc>
-rw-r--r-- | core/Command/User/Info.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/core/Command/User/Info.php b/core/Command/User/Info.php index f8b76a40a1f..55298f0164c 100644 --- a/core/Command/User/Info.php +++ b/core/Command/User/Info.php @@ -46,15 +46,7 @@ class Info extends Base { $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(), @@ -64,11 +56,10 @@ class Info extends Base { '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; } |