Commit 9392a555 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #21331 from switch-ch/fix_ms_log

Fix owncloud logging with ms precision
parents 9c4ab517 7fce06b3
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment