Home » Database » DB_ado » Bug #4704
date conversion not localized
Details
| Submitted | 2005-06-29 17:12 UTC |
|---|---|
| From | wf at bitplan dot com |
| Status | Bogus |
| Package | DB_ado |
| PHP Version | 5.0.4 |
| OS | all |
| 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