From 5b22e59383d7dc6dcc9e3247c10656052cf2d3fb Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 11 Dec 2015 18:43:53 +0100 Subject: [PATCH] Removing symfony-specific documentation --- docs/en/cookbook/working-with-datetime.rst | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/docs/en/cookbook/working-with-datetime.rst b/docs/en/cookbook/working-with-datetime.rst index 12757b742..4272c3a40 100644 --- a/docs/en/cookbook/working-with-datetime.rst +++ b/docs/en/cookbook/working-with-datetime.rst @@ -127,16 +127,7 @@ the UTC time at the time of the booking and the timezone the event happened in. } This database type makes sure that every DateTime instance is always saved in UTC, relative -to the current timezone that the passed DateTime instance has. To actually use that new type, configure it in ``config.yml`` like so: - -.. code-block:: yml - - doctrine: - dbal: - types: - datetime: DoctrineExtensions\DBAL\Types\UTCDateTimeType - datetimetz: DoctrineExtensions\DBAL\Types\UTCDateTimeType - +to the current timezone that the passed DateTime instance has. To be able to transform these values back into their real timezone you have to save the timezone in a separate field of the entity