Req #50543 [Opn->Wfx]: hardcoded CS_DT_CONVFMT results in loss of datetime precision
Edit report at https://bugs.php.net/bug.php?id=50543&edit=1
ID: 50543
Updated by: krakjoe@php.net
Reported by: kelaskin at gmail dot com
Summary: hardcoded CS_DT_CONVFMT results in loss of datetime
precision
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Sybase-ct (ctlib) related
Operating System: *
PHP Version: 5.3.1
Block user comment: N
Private report: N
New Comment:
The sybase maintainer has backed away from the project, since nobody new has come forward it has
been removed in version 7 of PHP.
For this reason, I'm marking the bug as won't fix, it can still be found by any maintainer
that might come along and revive sybase as a PECL project.
Previous Comments:
------------------------------------------------------------------------
[2009-12-21 17:04:19] kelaskin at gmail dot com
Description:
------------
It is impossible to retrieve DATETIME values with precision higher than 1 minute (as CS_DATES_SHORT
format drops seconds).
The value of CS_DT_CONVFMT should be configurable in the script context.
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ocs_12.5.1.comlib/html/comlib/X37122.htm
Reproduce code:
---------------
php_sybase_ct.c:
// Set datetime conversion format to "Nov 3 1998 8:06PM"
CS_INT dt_convfmt = CS_DATES_SHORT;
Expected result:
----------------
"Aug 24 1998 05:36:34:000PM"
Actual result:
--------------
"Nov 3 1998 5:36PM"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=50543&edit=1
Thread (2 messages)