PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_ado » Bug #4704

date conversion not localized

Details

Submitted2005-06-29 17:12 UTC
Fromwf at bitplan dot com
StatusBogus
PackageDB_ado
PHP Version5.0.4
OSall
Roadmaps(Not assigned)

Comments

[2005-06-29 17:12 UTC] wf at bitplan dot com

Description:
------------
if a date is returned in a localiyed format e.g. as
dd.mm.yyyy for example 14.10.2003
it will be converted to 1970-01-01

Reproduce code:
---------------
select somedate from sometable;

patch ado.php like this:
} elseif ($this->isTypeOfDate($type)) {
echo "date ".$fvalue."<br />";
if ($fvalue > 0) {
$value = date('Y-m-d', (integer) $fvalue);
}

date 14.10.2003
somedate=1970-01-01

Expected result:
----------------
2003-10-14 should be returned

Actual result:
--------------
1970-01-01