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
commit163b059c112d7c5eceb8a1cc1db55184855903df (patch)
treee4f12049baa63951e2ad035f2e5adf25693f0b3d /apps/files_reminders/lib/Command
parentc8a32a70cd7564e739b7c60196f804d50a954b8a (diff)
downloadnextcloud-server-163b059c112d7c5eceb8a1cc1db55184855903df.tar.gz
nextcloud-server-163b059c112d7c5eceb8a1cc1db55184855903df.zip
enh: use datetime
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, 1 insertions, 2 deletions
diff --git a/apps/files_reminders/lib/Command/ListCommand.php b/apps/files_reminders/lib/Command/ListCommand.php
index 35a778e87d1..f284be5bf2a 100644
--- a/apps/files_reminders/lib/Command/ListCommand.php
+++ b/apps/files_reminders/lib/Command/ListCommand.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OCA\FilesReminders\Command;
-use DateTime;
use DateTimeInterface;
use OC\Core\Command\Base;
use OCA\FilesReminders\Model\RichReminder;
@@ -81,7 +80,7 @@ class ListCommand extends Base {
fn (RichReminder $reminder) => [
$reminder->getUserId(),
$reminder->getNode()->getPath(),
- DateTime::createFromFormat('U', (string)$reminder->getRemindAt())->format(DateTimeInterface::ATOM), // ISO 8601
+ $reminder->getRemindAt()->format(DateTimeInterface::ATOM), // ISO 8601
$reminder->getNotified() ? 'true' : 'false',
],
$reminders,