diff options
author | David Rothstein <drothstein@gmail.com> | 2012-09-15 15:33:29 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-09-15 15:33:29 -0400 |
commit | c987bbd4796a89552bc2576f6f0cc3fb96bcf702 (patch) | |
tree | 6996ffe80e5c7f9aa8d2cb21c0232429a8929ce4 /includes | |
parent | d67b65277be72f8f35895c404844739054fc0be0 (diff) | |
download | brdo-c987bbd4796a89552bc2576f6f0cc3fb96bcf702.tar.gz brdo-c987bbd4796a89552bc2576f6f0cc3fb96bcf702.tar.bz2 |
Issue #1239410 by cangeceiro, swentel, jbrown: Fixed watchdog() should use php's time() to log time of event.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 5b8647410..d1d78b52b 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -1705,7 +1705,8 @@ function watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NO '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 |