ID: 38988 Updated by: [EMAIL PROTECTED] Reported By: wiggum24 at gmail dot com -Status: Feedback +Status: Bogus Bug Type: MSSQL related Operating System: Redhat Enterprise Linux PHP Version: 5.1.6 New Comment:
Works fine here. Did you remove ; in front of the line? Previous Comments: ------------------------------------------------------------------------ [2006-09-29 09:09:28] [EMAIL PROTECTED] >Trying to set mssql.datetimeconvert to Off in php.ini >doesn't work. >phpinfo() reports it as On, and the behaviour of the >recordset reflects the same. Which php.ini is used by PHP according to phpinfo()? Which php.ini did you change? Did you restart the web-server? ------------------------------------------------------------------------ [2006-09-29 06:47:39] wiggum24 at gmail dot com Description: ------------ Trying to set mssql.datetimeconvert to Off in php.ini doesn't work. phpinfo() reports it as On, and the behaviour of the recordset reflects the same. I've confirmed php is picking up the correct php.ini, and my php.ini contains no errors. Calling ini_set("mssql.datetimeconvert","Off"); before I do the query will set the value and the queries will return correctly. Reproduce code: --------------- No errors, the setting just doesn't apply. Expected result: ---------------- datetimes should appear as: 2006-07-20 16:32:00 Actual result: -------------- datetimes appear as: Jul 20 2006 04:32PM ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38988&edit=1