Skip to content
This repository has been archived by the owner on Nov 20, 2021. It is now read-only.

function fetchResult returns date as DateTime objects #2

Open
FinchPowers opened this issue Feb 8, 2011 · 1 comment
Open

function fetchResult returns date as DateTime objects #2

FinchPowers opened this issue Feb 8, 2011 · 1 comment

Comments

@FinchPowers
Copy link

sqlsrv returns date information within a DateTime object. To have this driver compatible with the others, it should extract the date.

Within function fetchResult()
list($table, $column) = $this->map[$index];
if(is_a($row[$index], 'DateTime')){
$dateTimeObj = $row[$index];
$row[$index] = $dateTimeObj->format('Y-m-d H:i:s');
}

@ianchanning
Copy link

@FinchPowers thanks, good find - I hit the same bug

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants