From 5ff178a753c335d2ab6d10cee531490f1026ec42 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Mon, 31 Jul 2023 12:10:50 -0700 Subject: enh: add updated at Signed-off-by: Christopher Ng --- apps/files_reminders/lib/Command/ListCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/files_reminders/lib/Command') 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', ], -- cgit v1.2.3