diff --git a/include/class_logging.inc b/include/class_logging.inc
index b64c18d30a50aa2511973ca46b980aa7b35543a2..fb9ebb40252af2c913ef1286422490baf743d7ec 100644
--- a/include/class_logging.inc
+++ b/include/class_logging.inc
@@ -60,7 +60,7 @@ class logging {
 
     /* Create data object */
     $entry = array(
-      'timestamp'   => time(),
+      'timestamp'   => microtime(TRUE),
       'action'      => $action,
       'objecttype'  => $objecttype,
       'object'      => $object,
@@ -143,7 +143,7 @@ class logging {
     }
     $tabObject = objects::create('auditEvent');
     $baseObject = $tabObject->getBaseObject();
-    $baseObject->fdAuditDateTime    = new DateTime('@'.$entry['timestamp']);
+    $baseObject->fdAuditDateTime    = DateTime::createFromFormat('U.u', number_format($entry['timestamp'], 6, '.', ''));
     $baseObject->fdAuditAction      = $entry['action'];
     $baseObject->fdAuditAuthorDN    = $entry['user'];
     $baseObject->fdAuditObjectType  = $entry['objecttype'];