mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 16:48:59 -04:00
occ: Improve timestamps for user:lastseen.
Signed-off-by: Jore <contact@jore.cc>
This commit is contained in:
parent
cb341fc64c
commit
3e69668c9e
1 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ class LastSeen extends Base {
|
|||
} else {
|
||||
$date = new \DateTime();
|
||||
$date->setTimestamp($lastLogin);
|
||||
$output->writeln($user->getUID() . "'s last login: " . $date->format('Y-m-d H:i'));
|
||||
$output->writeln($user->getUID() . "'s last login: " . $date->format('Y-m-d H:i:s T'));
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
@ -74,7 +74,7 @@ class LastSeen extends Base {
|
|||
} else {
|
||||
$date = new \DateTime();
|
||||
$date->setTimestamp($lastLogin);
|
||||
$output->writeln($user->getUID() . "'s last login: " . $date->format('Y-m-d H:i'));
|
||||
$output->writeln($user->getUID() . "'s last login: " . $date->format('Y-m-d H:i:s T'));
|
||||
}
|
||||
});
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue