diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-06-23 15:28:07 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-06-23 15:28:07 +0200 |
commit | 770881d5d66de36bb04fab8a2b9fdcae658150fa (patch) | |
tree | 24e9c54bb70d43603c9b3d492f755d9a593c3abf /core/Command/Security | |
parent | 35fe1dfebe976a7efdbaaa6344d08302b848b8a7 (diff) | |
download | nextcloud-server-770881d5d66de36bb04fab8a2b9fdcae658150fa.tar.gz nextcloud-server-770881d5d66de36bb04fab8a2b9fdcae658150fa.zip |
Move DateTime::ATOM to DateTimeInterface::ATOM
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/Command/Security')
-rw-r--r-- | core/Command/Security/ListCertificates.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/Security/ListCertificates.php b/core/Command/Security/ListCertificates.php index 9a96d98e53f..9a99a2f6db6 100644 --- a/core/Command/Security/ListCertificates.php +++ b/core/Command/Security/ListCertificates.php @@ -58,10 +58,10 @@ class ListCertificates extends Base { 'name' => $certificate->getName(), 'common_name' => $certificate->getCommonName(), 'organization' => $certificate->getOrganization(), - 'expire' => $certificate->getExpireDate()->format(\DateTime::ATOM), + 'expire' => $certificate->getExpireDate()->format(\DateTimeInterface::ATOM), 'issuer' => $certificate->getIssuerName(), 'issuer_organization' => $certificate->getIssuerOrganization(), - 'issue_date' => $certificate->getIssueDate()->format(\DateTime::ATOM) + 'issue_date' => $certificate->getIssueDate()->format(\DateTimeInterface::ATOM) ]; }, $this->certificateManager->listCertificates()); if ($outputType === self::OUTPUT_FORMAT_JSON) { |