BUGFIX: Fix times returned after midday being 12 hours early

This commit is contained in:
Andrew O'Neil 2009-06-30 02:09:02 +00:00
parent c3a0542c66
commit 31cedd108b

View File

@ -1300,7 +1300,7 @@ class MSSQLQuery extends Query {
$fields = sqlsrv_field_metadata($this->handle);
foreach($fields as $columnIdx => $field) {
$value = $data[$columnIdx];
if($value instanceof DateTime) $value = $value->format('Y-m-d h:i:s');
if($value instanceof DateTime) $value = $value->format('Y-m-d H:i:s');
// $value || !$ouput[$columnName] means that the *last* occurring value is shown
// !$ouput[$columnName] means that the *first* occurring value is shown