mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX: Fix times returned after midday being 12 hours early
This commit is contained in:
parent
c3a0542c66
commit
31cedd108b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user