aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJore <contact@jore.cc>2024-04-05 09:48:40 +1100
committerskjnldsv <skjnldsv@protonmail.com>2024-08-07 09:33:08 +0200
commit3e69668c9e23b7ca0dc299ff8898037541f91065 (patch)
tree3147dc7f0cf186474c3f4a739269c3f7dc48b93d /core
parentcb341fc64cd817e719a09818b3f047c1e05c9eee (diff)
downloadnextcloud-server-3e69668c9e23b7ca0dc299ff8898037541f91065.tar.gz
nextcloud-server-3e69668c9e23b7ca0dc299ff8898037541f91065.zip
occ: Improve timestamps for user:lastseen.
Signed-off-by: Jore <contact@jore.cc>
Diffstat (limited to 'core')
-rw-r--r--core/Command/User/LastSeen.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/User/LastSeen.php b/core/Command/User/LastSeen.php
index 3c2ec828d41..066377f4cf8 100644
--- a/core/Command/User/LastSeen.php
+++ b/core/Command/User/LastSeen.php
@@ -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;