diff --git a/composer/packages/web-toolkit-bundle/src/Service/PrivacyConsentManager.php b/composer/packages/web-toolkit-bundle/src/Service/PrivacyConsentManager.php index 178759f4..0e730563 100644 --- a/composer/packages/web-toolkit-bundle/src/Service/PrivacyConsentManager.php +++ b/composer/packages/web-toolkit-bundle/src/Service/PrivacyConsentManager.php @@ -289,7 +289,7 @@ private function validateTimestamp(array $data, ?array $latestConsentData): void $userTimestamp = $data[self::JSON_KEY_TIMESTAMP]; - if ($userTimestamp < $_SERVER['REQUEST_TIME'] - $this->timestampTolerance || $userTimestamp > $_SERVER['REQUEST_TIME'] + 1) { + if ($userTimestamp < $_SERVER['REQUEST_TIME'] - $this->timestampTolerance || $userTimestamp > $_SERVER['REQUEST_TIME'] + $this->timestampTolerance) { throw new InvalidUserConsentDataException( InvalidUserConsentDataException::TIMESTAMP_IS_NOT_IN_VALID_RANGE, );