events/Patches/testing-framework-ts-record.patch
Daniel Siepmann 81065f5c67
BREAKING: TYPO3 v12 support (#44)
* Migrated all fixtures to PHP.
* Removed version specific adjustments.
2023-11-27 10:04:42 +01:00

18 lines
1.1 KiB
Diff

Use "same" value for tstamp and crdate.
Otherwise TYPO3 will have different cache identifier if multiple requests with same instruction are given.
diff --git a/Resources/Core/Functional/Extensions/json_response/Classes/EventListener/AddTypoScriptFromInternalRequest.php b/Resources/Core/Functional/Extensions/json_response/Classes/EventListener/AddTypoScriptFromInternalRequest.php
index 111a997..504a899 100644
--- a/Resources/Core/Functional/Extensions/json_response/Classes/EventListener/AddTypoScriptFromInternalRequest.php
+++ b/Resources/Core/Functional/Extensions/json_response/Classes/EventListener/AddTypoScriptFromInternalRequest.php
@@ -49,8 +49,8 @@ final class AddTypoScriptFromInternalRequest
$newTemplateRow = [
'uid' => PHP_INT_MAX,
'pid' => PHP_INT_MAX,
- 'tstamp' => time(),
- 'crdate' => time(),
+ 'tstamp' => (new \DateTimeImmutable('midnight'))->format('U'),
+ 'crdate' => (new \DateTimeImmutable('midnight'))->format('U'),
'deleted' => 0,
'starttime' => 0,
'endtime' => 0,