From 3a1b3745eb8e43eaa830bdeb9fe53a2de70349f0 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 21 Oct 2021 16:58:03 +0200 Subject: Fix DateTime constructor calls with null MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/private/Log/LogDetails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private') diff --git a/lib/private/Log/LogDetails.php b/lib/private/Log/LogDetails.php index 87ce0396594..3353ea3f4cc 100644 --- a/lib/private/Log/LogDetails.php +++ b/lib/private/Log/LogDetails.php @@ -46,7 +46,7 @@ abstract class LogDetails { } $time = \DateTime::createFromFormat("U.u", number_format(microtime(true), 4, ".", "")); if ($time === false) { - $time = new \DateTime(null, $timezone); + $time = new \DateTime('now', $timezone); } else { // apply timezone if $time is created from UNIX timestamp $time->setTimezone($timezone); -- cgit v1.2.3