|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20920 mssql.datetimeconvert=0 doesn't work for smalldatetime
Submitted: 2002-12-10 05:39 UTC Modified: 2003-01-25 01:00 UTC
Avg. Score:4.0 ± 1.0
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (25.0%)
From: f dot vulto at re-base dot com Assigned:
Status: No Feedback Package: MSSQL related
PHP Version: 4CVS-2002-12-10 (dev) OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: f dot vulto at re-base dot com
New email:
PHP Version: OS:


 [2002-12-10 05:39 UTC] f dot vulto at re-base dot com
When setting:

   ini_set('mssql.datetimeconvert', 0);

fields of type 'smalldatetime' are still converted to a
local date format.  The above setting only seems to apply
to fields of type 'datetime'.
For example, leaving 'mssql.datetimeconvert = 1' and
displaying two fields DATETIME and SMALLDATETIME would
result in:

   Dec 31 2002 12:00AM  // DATETIME
   Dec 31 2002 12:00AM  // SMALLDATETIME

whereas, setting 'mssql.datetimeconvert = 0' would result

   2002-12-31 00:00:00  // DATETIME
   Dec 31 2002 12:00AM  // SMALLDATETIME

See also:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-09 12:22 UTC]
Please try using this CVS snapshot:
For Windows:

The handling of boolean ini settings did not always work due to wrong initialization of data types. This has been fixed in cvs.
 [2003-01-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 12:01:31 2024 UTC