diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-21 16:58:03 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-23 09:28:58 +0100 |
commit | 3a1b3745eb8e43eaa830bdeb9fe53a2de70349f0 (patch) | |
tree | aa6a65fca43a7bdef7983a710b5a789260b0b877 /lib/private/Log/LogDetails.php | |
parent | bc3acfc957f888840cb904950a5932a330504185 (diff) | |
download | nextcloud-server-3a1b3745eb8e43eaa830bdeb9fe53a2de70349f0.tar.gz nextcloud-server-3a1b3745eb8e43eaa830bdeb9fe53a2de70349f0.zip |
Fix DateTime constructor calls with null
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Log/LogDetails.php')
-rw-r--r-- | lib/private/Log/LogDetails.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |