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
+ Prior to version 8.0.19, MySQL does not support saving timezones or offsets. The DateTimeTz type therefore
74
+ behaves like the DateTime type on previous versions.
75
+ Starting from version `8.0.19 and later <https://dev.mysql.com/doc/refman/8.0/en/date-and-time-literals.html#date-and-time-string-numeric-literals >`_,
76
+ timezone offsets are supported. MySQL converts the time zone offset to UTC for storage, and back from UTC to the current
77
+ (SYSTEM, SESSION, etc) time zone for retrieval.
78
+
79
+ MariaDB
80
+ -------
81
+
82
+ DateTimeTz
83
+ ~~~~~~~~~~
84
+
85
+ MariaDB does not support saving timezone offsets. The DateTimeTz type therefore behaves like the DateTime
86
+ type.
75
87
76
88
Sqlite
77
89
------
@@ -86,7 +98,7 @@ breaks the SERIALIZABLE transaction isolation property that SQLite supposedly
86
98
has.
87
99
88
100
DateTime
89
- ~~~~~~~~~~
101
+ ~~~~~~~~
90
102
91
103
Unlike most database management systems, Sqlite does not convert supplied
92
104
datetime strings to an internal storage format before storage. Instead, Sqlite
@@ -104,8 +116,8 @@ when trying to convert database values to ``\DateTime`` objects using
104
116
DateTimeTz
105
117
~~~~~~~~~~
106
118
107
- Sqlite does not support saving timezones or offsets. The DateTimeTz
108
- type therefore behaves like the DateTime type.
119
+ Sqlite supports saving timezone offsets, but this feature is not yet implemented in DBAL.
120
+ The DateTimeTz type therefore behaves like the DateTime type.
109
121
110
122
Reverse engineering primary key order
111
123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -121,10 +133,8 @@ IBM DB2
121
133
DateTimeTz
122
134
~~~~~~~~~~
123
135
124
- DB2 does not save the actual Timezone Name but UTC-Offsets. The
125
- difference is subtle but can be potentially very nasty. Derick
126
- Rethans explains it very well
127
- `in a blog post of his <http://derickrethans.nl/storing-date-time-in-database.html >`_.
136
+ DB2 does not support saving timezone offsets. The DateTimeTz type therefore behaves like the DateTime
137
+ type.
128
138
129
139
Oracle
130
140
------
0 commit comments