Update number two:
in doing
var_dump($this->dataStore('mydata');
has revealed this:
["TIMCRD_DAT"]=> string(23) "2019-12-13 00:00:00.000" ["SEQ_NO"]=> string(1) ["REF"]=> string(0) "" ["CLCK_TIM"]=> string(16) "08:12:33.0000000"
both the TIMCRD_DAT and CLCK_TIM field are coming through as strings rather than datetime. TIMCRD_DAT is MSSQL type datetime and CLCK_TIM is type time.
A little more searching turned up this from Microsoft:
This feature, added in version 5.6.0, is only valid when using the PDO_SQLSRV driver for the Microsoft Drivers for PHP for SQL Server.
To retrieve date and time types as DateTime objects
When using PDO_SQLSRV, date and time types (smalldatetime, datetime, date, time, datetime2, and datetimeoffset) are by default returned as strings. Neither the PDO::ATTR_STRINGIFY_FETCHES nor the PDO::SQLSRV_ATTR_FETCHES_NUMERIC_TYPE attribute has any effect. In order to retrieve date and time types as PHP DateTime objects, set the connection or statement attribute PDO::SQLSRV_ATTR_FETCHES_DATETIME_TYPE to true (it is false by default).
Now being on version 5.6.1 if I modify PDODatasource.php with the following (line 119):
$this->connection->setAttribute(PDO::SQLSRV_ATTR_FETCHES_DATETIME_TYPE, true);
That will produce this error:
[30-Dec-2019 22:17:42 UTC] PHP Warning: htmlspecialchars() expects parameter 1 to be string, object given in C:\inetpub\wwwmymac\koolreport_pro_4.3.2\koolreport_pro-4.3.2\koolreport\core\src\widgets\koolphp\Table.tpl.php on line 137
[30-Dec-2019 22:17:42 UTC] PHP Warning: DateTime::createFromFormat() expects parameter 2 to be string, object given in C:\inetpub\wwwmymac\koolreport_pro_4.3.2\koolreport_pro-4.3.2\koolreport\core\src\core\Utility.php on line 169
[30-Dec-2019 22:17:42 UTC] PHP Recoverable fatal error: Object of class DateTime could not be converted to string in C:\inetpub\wwwmymac\koolreport_pro_4.3.2\koolreport_pro-4.3.2\koolreport\core\src\widgets\koolphp\Table.tpl.php on line 138
So that isn't the answer. Am I missing something?