From:             kelaskin at gmail dot com
Operating system: any
PHP version:      5.3.1
PHP Bug Type:     Sybase-ct (ctlib) related
Bug description:  hardcoded CS_DT_CONVFMT results in loss of datetime precision

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 bug report at http://bugs.php.net/?id=50543&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50543&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50543&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50543&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50543&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50543&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50543&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50543&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50543&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50543&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50543&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50543&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50543&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50543&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50543&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50543&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50543&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50543&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50543&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50543&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50543&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50543&r=mysqlcfg

Reply via email to