Merge pull request #21331 from switch-ch/fix_ms_log

Fix owncloud logging with ms precision
This commit is contained in:
Thomas Müller 2015-12-29 16:32:52 +01:00
commit 9392a555ae
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}