mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
a4c269bf62
Fixing the date type to actually be "date", and not "datetime" so that values are returned as "Y-m-d" for dates, and not "Y-m-d H:i:s". Additionally, fixing a case where using the mssql functions would return strange datetime formats. We need the datetime field values in Y-m-d H:i:s. To get this working, we need to inspect the field type when retrieving rows from the database and re-format the datetime value at this point. This is done in MSSQLQuery::nextRecord()
6 lines
118 B
YAML
6 lines
118 B
YAML
MSSQLDatabaseQueryTestDataObject:
|
|
test-data-1:
|
|
TestDate: 2012-01-01
|
|
TestDatetime: 2012-01-01 10:30:00
|
|
|