aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_reminders/lib/Command
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-07-31 12:10:50 -0700
committerChristopher Ng <chrng8@gmail.com>2023-08-03 15:30:11 -0700
commit5ff178a753c335d2ab6d10cee531490f1026ec42 (patch)
treecc478dd03b0ecfb52718080516e38a680d08ef7c /apps/files_reminders/lib/Command
parent7637bf2ae04d5558b5771b62cd17b6bc7321ba44 (diff)
downloadnextcloud-server-5ff178a753c335d2ab6d10cee531490f1026ec42.tar.gz
nextcloud-server-5ff178a753c335d2ab6d10cee531490f1026ec42.zip
enh: add updated at
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_reminders/lib/Command')
-rw-r--r--apps/files_reminders/lib/Command/ListCommand.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_reminders/lib/Command/ListCommand.php b/apps/files_reminders/lib/Command/ListCommand.php
index 7d6044f21c6..b066c6ed8cf 100644
--- a/apps/files_reminders/lib/Command/ListCommand.php
+++ b/apps/files_reminders/lib/Command/ListCommand.php
@@ -75,12 +75,13 @@ class ListCommand extends Base {
}
$io->table(
- ['UserId', 'Path', 'DueDate', 'CreatedAt', 'Notified'],
+ ['User Id', 'Path', 'Due Date', 'Updated At', 'Created At', 'Notified'],
array_map(
fn (RichReminder $reminder) => [
$reminder->getUserId(),
$reminder->getNode()->getPath(),
$reminder->getDueDate()->format(DateTimeInterface::ATOM), // ISO 8601
+ $reminder->getUpdatedAt()->format(DateTimeInterface::ATOM), // ISO 8601
$reminder->getCreatedAt()->format(DateTimeInterface::ATOM), // ISO 8601
$reminder->getNotified() ? 'true' : 'false',
],