occ: Improve timestamps for user:info.

Signed-off-by: Jore <contact@jore.cc>
This commit is contained in:
Jore 2024-04-05 10:47:26 +11:00 committed by skjnldsv
parent 3e69668c9e
commit bd81967fa1

View file

@ -56,7 +56,7 @@ class Info extends Base {
'groups' => $groups,
'quota' => $user->getQuota(),
'storage' => $this->getStorageInfo($user),
'last_seen' => date(\DateTimeInterface::ATOM, $user->getLastLogin()), // ISO-8601
'last_seen' => date('Y-m-d H:i:s T', $user->getLastLogin()),
'user_directory' => $user->getHome(),
'backend' => $user->getBackendClassName()
];