File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 70
70
DateTimeTz
71
71
~~~~~~~~~~
72
72
73
- MySQL does not support saving timezones or offsets. The DateTimeTz
74
- type therefore behaves like the DateTime type.
73
+ Previous to version 8.0.19, MySQL does not support saving timezones or offsets. The DateTimeTz
74
+ type therefore behaves like the DateTime type on previous versions .
75
75
76
76
Sqlite
77
77
------
@@ -104,8 +104,8 @@ when trying to convert database values to ``\DateTime`` objects using
104
104
DateTimeTz
105
105
~~~~~~~~~~
106
106
107
- Sqlite does not support saving timezones or offsets. The DateTimeTz
108
- type therefore behaves like the DateTime type.
107
+ Sqlite support saving timezone offsets, but this feature is not yet implemented in DBAL.
108
+ The DateTimeTz type therefore behaves like the DateTime type.
109
109
110
110
Reverse engineering primary key order
111
111
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -301,6 +301,15 @@ information, you should consider using this type.
301
301
Values retrieved from the database are always converted to PHP's ``\DateTime `` object
302
302
or ``null `` if no data is present.
303
303
304
+ .. note ::
305
+
306
+ This type is not supported by all the vendor platforms or by all of their versions. Depending on
307
+ these variants, the databases that support this type may return the persisted date and time in a
308
+ different timezone than the one used during the ``INSERT `` or the ``UPDATE `` operation. This means
309
+ that if you persist a value like `1986-22-03 19:45:30-03:00 `, you could have `1986-22-03 22:45:30-00:00 `
310
+ as the result of a ``SELECT `` operation for that record. In these cases, the timezone offset present
311
+ in the result is usually UTC or the one configured as default in the database server.
312
+
304
313
datetimetz_immutable
305
314
^^^^^^^^^^^^^^^^^^^^
306
315
You can’t perform that action at this time.
0 commit comments