aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Log
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2021-06-23 09:56:28 -0700
committerGitHub <noreply@github.com>2021-06-23 09:56:28 -0700
commit9ed379da22e4dd0b54fed4241798aec47d6e3f2c (patch)
tree279fb154fc813240ba34fa4cbbe525e9627e76b5 /lib/private/Log
parent19a84512d688ae899f0f8efc37b89d2a9676cc48 (diff)
parent6d5cfe0c66f7010d552f0aa234a13c2e91a933bd (diff)
downloadnextcloud-server-9ed379da22e4dd0b54fed4241798aec47d6e3f2c.tar.gz
nextcloud-server-9ed379da22e4dd0b54fed4241798aec47d6e3f2c.zip
Merge pull request #27635 from nextcloud/fix/datetime-constants
Fix usage of DateTime constants
Diffstat (limited to 'lib/private/Log')
-rw-r--r--lib/private/Log/LogDetails.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Log/LogDetails.php b/lib/private/Log/LogDetails.php
index 5ca8231eecb..87ce0396594 100644
--- a/lib/private/Log/LogDetails.php
+++ b/lib/private/Log/LogDetails.php
@@ -37,7 +37,7 @@ abstract class LogDetails {
public function logDetails(string $app, $message, int $level): array {
// default to ISO8601
- $format = $this->config->getValue('logdateformat', \DateTime::ATOM);
+ $format = $this->config->getValue('logdateformat', \DateTimeInterface::ATOM);
$logTimeZone = $this->config->getValue('logtimezone', 'UTC');
try {
$timezone = new \DateTimeZone($logTimeZone);