php.net |  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
Votes:6
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
in:

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

See also: http://bugs.php.net/bug.php?id=12655

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-09 12:22 UTC] fmk@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

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: Sat Dec 21 13:01:31 2024 UTC