summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-29 16:32:52 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-29 16:32:52 +0100
commit9392a555aeaf2aed2864d7219cf88278561b9c6f (patch)
treeaaf006ddd063bb2879691009339d0ba2142ad13b
parent9c4ab517353d950627f7e36d983728f0deeccde7 (diff)
parent7fce06b3f32ec564f129bf2a361d6ee37096e03b (diff)
downloadnextcloud-server-9392a555aeaf2aed2864d7219cf88278561b9c6f.tar.gz
nextcloud-server-9392a555aeaf2aed2864d7219cf88278561b9c6f.zip
Merge pull request #21331 from switch-ch/fix_ms_log
Fix owncloud logging with ms precision
-rw-r--r--lib/private/log/owncloud.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/log/owncloud.php b/lib/private/log/owncloud.php
index be69150d877..e455824a8dd 100644
--- a/lib/private/log/owncloud.php
+++ b/lib/private/log/owncloud.php
@@ -73,7 +73,7 @@ class OC_Log_Owncloud {
} catch (Exception $e) {
$timezone = new DateTimeZone('UTC');
}
- $time = DateTime::createFromFormat("U.u", microtime(true), $timezone);
+ $time = DateTime::createFromFormat("U.u", number_format(microtime(true), 4, ".", ""), $timezone);
if ($time === false) {
$time = new DateTime(null, $timezone);
}