[DOC-CVS] [doc-en] master: Pdo: Document `Pdo\Dblib::ATTR_DATETIME_CONVERT` (#4658)
[email protected] (Calvin Buckley via GitHub) Sat, 9 May 2026 09:17:32 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Calvin Buckley (NattyNarwhal)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-05-09T11:17:29+02:00
Commit: https://github.com/php/doc-en/commit/608815b2f52cc7dae75eb02e27f457aad1e5e977
Raw diff: https://github.com/php/doc-en/commit/608815b2f52cc7dae75eb02e27f457aad1e5e977.diff
Pdo: Document `Pdo\Dblib::ATTR_DATETIME_CONVERT` (#4658)
* Document Pdo\Dblib::ATTR_DATETIME_CONVERT
Changed paths:
M reference/pdo_dblib/pdo-dblib.xml
Diff:
diff --git a/reference/pdo_dblib/pdo-dblib.xml b/reference/pdo_dblib/pdo-dblib.xml
index b838fd983388..becde341e278 100644
--- a/reference/pdo_dblib/pdo-dblib.xml
+++ b/reference/pdo_dblib/pdo-dblib.xml
@@ -142,6 +142,13 @@
<term><constant>Pdo\Dblib::ATTR_DATETIME_CONVERT</constant></term>
<listitem>
<simpara>
+ This connection attribute controls the format of strings for datetime
+ types. When this is &false;, PDO_DBLIB will return a datetime type as a
+ string in the format that SQL Server returns it in (i.e.
+ <literal>"2017-10-27 10:22:44"</literal>). When &true;, PDO_DBLIB will
+ convert the datetime type into a string using a user-defined or locale
+ format, as specified in the FreeTDS <filename>locales.conf</filename>
+ file. By default, this attribute is &false;.
</simpara>
</listitem>
</varlistentry>