Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add created to occ user:info
Signed-off-by: Akhil <[email protected]>
  • Loading branch information
akhil1508 committed Mar 21, 2023
commit 64b870f2b67d28be42f358f5e78b8d600d4245ad
3 changes: 2 additions & 1 deletion core/Command/User/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
'storage' => $this->getStorageInfo($user),
'last_seen' => date(\DateTimeInterface::ATOM, $user->getLastLogin()), // ISO-8601
'user_directory' => $user->getHome(),
'backend' => $user->getBackendClassName()
'backend' => $user->getBackendClassName(),
'created' => date(\DateTimeInterface::Atom, $user->getFirstLogin())
];
$this->writeArrayInOutputFormat($input, $output, $data);
return 0;
Expand Down
4 changes: 2 additions & 2 deletions lib/private/User/LazyUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function getFirstLogin() {
return $this->getUser()->getFirstLogin();
}

public function updateFirstLoginTimestamp() {
return $this->getUser()->updateFirstLoginTimestamp();
public function updateFirstLoginTimestamp(int $timestamp) {
return $this->getUser()->updateFirstLoginTimestamp($timestamp);
}
}