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
commit4fabd7743230be80f82543edd4905ead97f14a59 (patch)
tree7d09b81d1a6bac9e999b131befd784f500ee91e6 /apps/files_reminders/lib/Command
parent163b059c112d7c5eceb8a1cc1db55184855903df (diff)
downloadnextcloud-server-4fabd7743230be80f82543edd4905ead97f14a59.tar.gz
nextcloud-server-4fabd7743230be80f82543edd4905ead97f14a59.zip
enh: add created 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 f284be5bf2a..074aeb87239 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', 'RemindAt', 'Notified'],
+ ['UserId', 'Path', 'RemindAt', 'CreatedAt', 'Notified'],
array_map(
fn (RichReminder $reminder) => [
$reminder->getUserId(),
$reminder->getNode()->getPath(),
$reminder->getRemindAt()->format(DateTimeInterface::ATOM), // ISO 8601
+ $reminder->getCreatedAt()->format(DateTimeInterface::ATOM), // ISO 8601
$reminder->getNotified() ? 'true' : 'false',
],
$reminders,