diff --git a/analytics/classes/analysable.php b/analytics/classes/analysable.php index 20018528a20..968de63f683 100644 --- a/analytics/classes/analysable.php +++ b/analytics/classes/analysable.php @@ -37,8 +37,9 @@ interface analysable { /** * Max timestamp. + * We are limited by both PHP's max int value and DB (cross-db) max int allowed. Use the smallest one. */ - const MAX_TIME = PHP_INT_MAX; + const MAX_TIME = PHP_INT_MAX < 9999999999 ? PHP_MAX_INT : 9999999999; /** * The analysable unique identifier in the site.