Commit 0dfa8459 authored by webchick's avatar webchick
Browse files

Issue #1239410 by cangeceiro: Fixed watchdog() should use php's time() to log time of event.

parent b72e2812
......@@ -1705,7 +1705,8 @@ function watchdog($type, $message, array $variables = array(), $severity = WATCH
'request_uri' => $base_root . request_uri(),
'referer' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '',
'ip' => ip_address(),
'timestamp' => REQUEST_TIME,
// Request time isn't accurate for long processes, use time() instead.
'timestamp' => time(),
);
// Call the logging hooks to log/process the message
......
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