php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66617 Date values are displayed in wrong format
Submitted: 2014-01-31 12:29 UTC Modified: -
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: thomas dot kaltseis at leha dot at Assigned:
Status: Open Package: PDO_INFORMIX (PECL)
PHP Version: 5.5.8 OS: Ubuntu 12.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-01-31 12:29 UTC] thomas dot kaltseis at leha dot at
Description:
------------
The DBDATE environment variable seems to be not recognized by pdo_informix module, so the date-values are displayed in wrong date-format.




Patches

PDO_INFORMIX (last revision 2014-01-31 12:32 UTC by thomas dot kaltseis at leha dot at)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-29 14:04 UTC] lk at ordix dot de
We have the same problem here with PHP 5.3.6 and PDO_INFORMIX 1.2.6
 [2014-07-14 12:47 UTC] ffapitalle at cooperativaobrera dot coop
We've been diagnosing this issue for the last couple of days.
We are currently using PDO_INFORMIX 1.2.7 and php 5.3.3. It turns out that if we link PDO_INFORMIX against Informix CSDK 2.90, DBDATE environment variable is recognized and return the expected results

> php -f test.php 
Array
(
    [fecha] => 2013-12-01
    [0] => 2013-12-01
)
> DBDATE=dmy4 php -f test.php 
Array
(
    [fecha] => 01/12/2013
    [0] => 01/12/2013
)

On the other hand, if we link PDO_INFORMIX against CSDK 3.70, it behaves like it is described in this bug.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 03:01:25 2019 UTC