From a4cf738a20204893bbe211ad29b0b721a5709c55 Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Thu, 4 Dec 2025 20:31:12 +0100 Subject: [PATCH] Remove backslashes from DateTime references The backslash is not part of the class name. It is only needed if you do not have a "use DateTime;" statement. --- .../Reference/Domain/Model/PropertyTypes/Index.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/ExtensionArchitecture/Extbase/Reference/Domain/Model/PropertyTypes/Index.rst b/Documentation/ExtensionArchitecture/Extbase/Reference/Domain/Model/PropertyTypes/Index.rst index 64a35e6f5b..99d67d4786 100644 --- a/Documentation/ExtensionArchitecture/Extbase/Reference/Domain/Model/PropertyTypes/Index.rst +++ b/Documentation/ExtensionArchitecture/Extbase/Reference/Domain/Model/PropertyTypes/Index.rst @@ -124,7 +124,7 @@ it should **not** be used in the following cases: - **Date and time fields**: For fields configured with `datetime `_, - use :php:`\DateTimeInterface` instead of :php:`int` to benefit from proper + use :php:`DateTimeInterface` instead of :php:`int` to benefit from proper time handling and formatting in Extbase and Fluid. - **Boolean values**: For fields using @@ -210,7 +210,7 @@ Predefined classes as types of models Datetime model types -------------------- -The PHP classes :php:`\DateTime` and :php:`\DateTimeImmutable` can be used with +The PHP classes :php:`DateTime` and :php:`DateTimeImmutable` can be used with the TCA field type `datetime `_ The value can be stored in the database as either a unix timestamp :sql:`int(11)` @@ -227,7 +227,7 @@ ViewHelper